branch: elpa/graphql-mode
commit 09669d4343bae77c7cc0fb40c2845699feb8d009
Merge: 74ee772a62 d9d3bba569
Author: David Vázquez Púa <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #28 from
charles-boyd/enhancement/add-missing-graphql-keywords
added support for 'extend', 'scalar' and 'union' keywords
---
graphql-mode.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index cdac300b3b..df3ab6dec4 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -261,7 +261,8 @@ Please install it and try again."))
'("type" "input" "interface" "fragment"
"query" "enum" "mutation" "subscription"
"Int" "Float" "String" "Boolean" "ID"
- "true" "false" "null"))
+ "true" "false" "null" "extend"
+ "scalar" "union"))
(defun graphql-completion-at-point ()
"Return the list of candidates for completion.
@@ -274,8 +275,9 @@ This is the function to be used for the hook
`completion-at-point-functions'."
(defvar graphql-definition-regex
(concat "\\(" (regexp-opt '("type" "input" "interface" "fragment" "query"
- "mutation" "subscription" "enum")) "\\)"
- "[[:space:]]+\\(\\_<.+?\\_>\\)")
+ "mutation" "subscription" "enum" "extend"
+ "scalar" "union")) "\\)"
+ "[[:space:]]+\\(\\_<.+?\\_>\\)")
"Keyword Regular Expressions.")
(defvar graphql-builtin-types