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

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

[nongnu] elpa/graphql-mode 5e294e8160 120/122: Fix parameters defined on


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode 5e294e8160 120/122: Fix parameters defined on the same line not always fontified
Date: Sat, 29 Jan 2022 08:03:41 -0500 (EST)

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

    Fix parameters defined on the same line not always fontified
---
 graphql-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index 17b143da0f..cb7c3352b2 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 "\\(\\_<.+?\\_>\\):" end t)))
+               (match (search-forward-regexp "\\(\\_<[a-zA-Z0-9_-]+?\\_>\\):" 
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]