[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/graphql-mode 3c25bf5cbd 040/122: Adapt more regexs to unde
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/graphql-mode 3c25bf5cbd 040/122: Adapt more regexs to understand _ as part f symbols |
Date: |
Sat, 29 Jan 2022 08:03:31 -0500 (EST) |
branch: elpa/graphql-mode
commit 3c25bf5cbd5ba4c60dca9c96286412eb765de7c9
Author: David Vazquez Pua <dvazquezpua@deloitte.nl>
Commit: David Vazquez Pua <dvazquezpua@deloitte.nl>
Adapt more regexs to understand _ as part f symbols
---
graphql-mode.el | 8 ++++----
test/schema.graphql | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index 0dd61afdb7..aa8879623c 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -174,7 +174,7 @@ response from the server."
;; the search can continue.
((graphql--in-arguments-p)
(let* ((end (save-excursion (up-list) (point)))
- (match (search-forward-regexp "\\(\\w+\\):" end t)))
+ (match (search-forward-regexp "\\(\\_<.+?\\_>\\):" end t)))
(if match
;; unless we are inside a string or comment
(let ((state (syntax-ppss)))
@@ -209,14 +209,14 @@ response from the server."
(,(regexp-opt graphql-constants) . font-lock-constant-face)
;; Variables
- ("\\$\\w+" . font-lock-variable-name-face)
+ ("\\$\\_<.+?\\_>" . font-lock-variable-name-face)
;; Types
- (":[[:space:]]*\\[?\\(\\w+\\)\\]?"
+ (":[[:space:]]*\\[?\\(\\_<.+?\\_>\\)\\]?"
(1 font-lock-type-face))
;; Directives
- ("@\\w+" . font-lock-keyword-face)
+ ("@\\_<.+?\\_>" . font-lock-keyword-face)
;; Field parameters
(graphql--field-parameter-matcher
diff --git a/test/schema.graphql b/test/schema.graphql
index 85d77c0566..e63a0f65ab 100644
--- a/test/schema.graphql
+++ b/test/schema.graphql
@@ -1,8 +1,8 @@
type Query {
- person(id: ID): Person
+ person(id: ID): Person_type
}
-type Person {
+type Person_type {
name: String
- friends: [Person]
+ friends_foo: [Person_fo]
}
- [nongnu] elpa/graphql-mode 7eec227135 098/122: Add header edit buffer UI & stubs, (continued)
- [nongnu] elpa/graphql-mode 7eec227135 098/122: Add header edit buffer UI & stubs, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode c3f7b9d827 105/122: Use unique buffer name, not full path, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 1912bd08f5 118/122: Merge pull request #43 from phikal/patch-1, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 80e9ac8020 119/122: Provide a link to what a graphqlconfig file is., ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 5e294e8160 120/122: Fix parameters defined on the same line not always fontified, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode ec3c72cd28 016/122: Support enum definitions, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode ad54fdb48a 022/122: Improve package description, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 66efefd508 027/122: Add customization group and variable to customize indentation level, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode ef2933eb92 020/122: Add autoload cookie to auto-mode-alist setting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 7d954d0045 035/122: Fix font lock to highlight whole symbols, not just words, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 3c25bf5cbd 040/122: Adapt more regexs to understand _ as part f symbols,
ELPA Syncer <=
- [nongnu] elpa/graphql-mode 36dc6e6c9d 042/122: Update with David feedback, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode dec32e6441 021/122: Fix package dependencies, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 3ddf204de7 031/122: Add mailmap to merge author lines, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode a37919f2ab 065/122: graphql--query: Remove unused lexical variable, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode cf2622cb21 049/122: Update feedback from David, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode d3aa4d66e0 013/122: Extract constants and values into separate variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 1bff11f21c 056/122: fix the line-boundary issue to enhance {} sexp, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode ba5952590c 079/122: Merge pull request #22 from cbowdon/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 061d6d0b34 001/122: Initial commit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode cbd07029fa 009/122: Better indentation of closing pairs, ELPA Syncer, 2022/01/29