Skip to content

Commit 233a6cc

Browse files
committed
gron.nanorc: improve *_COLORS variable value highlight
1 parent c70d327 commit 233a6cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

demo/src/main/scripts/nanorc/gron.nanorc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ NUMBER: "\<[-]?[0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
55
STRING: "[a-zA-Z]+[a-zA-Z0-9]*"
66
NULL: "\<null\>"
77
BOOLEAN: "\<(true|false)\>"
8-
VARIABLE: "(\[|,)\s*[a-zA-Z0-9]*\s*:"
9-
PLAIN: "(:|\[|,|\])"
8+
VARIABLE: "(\[|,)\s*[a-zA-Z0-9_]*\s*:"
9+
VARIABLE: "(^|:)[a-zA-Z0-9_]*="
10+
PLAIN: "(=|:|\[|,|\])"
1011
ESCAPE: "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]"
1112
$BALANCED_DELIMITERS "", '"

0 commit comments

Comments
 (0)