emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/graphql-mode d9d3bba569 088/122: added support for 'extend


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode d9d3bba569 088/122: added support for 'extend', 'scalar' and 'union' keywords
Date: Sat, 29 Jan 2022 08:03:37 -0500 (EST)

branch: elpa/graphql-mode
commit d9d3bba569f0c96e0012ecaf863003eb6e5d7415
Author: Charles Boyd <cboyd@kpd-i.com>
Commit: Charles Boyd <cboyd@kpd-i.com>

    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

[Prev in Thread] Current Thread [Next in Thread]