branch: elpa/graphql-mode
commit 6308d80a2cc7f76450326f8d71ea6955f765641c
Author: lWarne <[email protected]>
Commit: lWarne <[email protected]>
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)))