branch: elpa/graphql-mode
commit 9740e4027bd9313697d5cac5caaa5b15626ab1da
Merge: 80e9ac8020 6308d80a2c
Author: David Vázquez Púa <[email protected]>
Commit: GitHub <[email protected]>
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)))