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

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

[nongnu] elpa/graphql-mode 9740e4027b 122/122: Merge pull request #45 fr


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode 9740e4027b 122/122: Merge pull request #45 from LaurenceWarne/parameter-fontlock-fix
Date: Sat, 29 Jan 2022 08:03:41 -0500 (EST)

branch: elpa/graphql-mode
commit 9740e4027bd9313697d5cac5caaa5b15626ab1da
Merge: 80e9ac8020 6308d80a2c
Author: David Vázquez Púa <davazp@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #45 from LaurenceWarne/parameter-fontlock-fix
    
    Fix Parameters on the Same line not Fontified
---
 graphql-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index 17b143da0f..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 "\\(\\_<.+?\\_>\\):" 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]