branch: elpa/graphql-mode
commit d9d3bba569f0c96e0012ecaf863003eb6e5d7415
Author: Charles Boyd <[email protected]>
Commit: Charles Boyd <[email protected]>

    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

Reply via email to