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

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

[nongnu] elpa/graphql-mode 6308d80a2c 121/122: Update parameter regex to


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode 6308d80a2c 121/122: Update parameter regex to match graphql standard
Date: Sat, 29 Jan 2022 08:03:41 -0500 (EST)

branch: elpa/graphql-mode
commit 6308d80a2cc7f76450326f8d71ea6955f765641c
Author: lWarne <laurencewarne@gmail.com>
Commit: lWarne <laurencewarne@gmail.com>

    Update parameter regex to match graphql standard
---
 graphql-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index cb7c3352b2..5f3ed0e161 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -343,7 +343,7 @@ This is the function to be used for the hook 
`completion-at-point-functions'."
        ;; the search can continue.
        ((graphql--in-arguments-p)
         (let* ((end (save-excursion (up-list) (point)))
-               (match (search-forward-regexp "\\(\\_<[a-zA-Z0-9_-]+?\\_>\\):" 
end t)))
+               (match (search-forward-regexp 
"\\(\\_<[_A-Za-z][_0-9A-Za-z]*?\\_>\\):" end t)))
           (if match
               ;; unless we are inside a string or comment
               (let ((state (syntax-ppss)))



reply via email to

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