Skip to content

Commit f988d35

Browse files
committedJan 24, 2022
args.nanorc: improve options highlighting
1 parent 4b74323 commit f988d35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎demo/src/main/scripts/nanorc/args.nanorc

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ syntax "ARGS"
22

33
NUMBER: "\<[-]?[0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
44
STRING: "[a-zA-Z]+[a-zA-Z0-9]*"
5-
FUNCTION: "\<(console|grab|inspect)\>"
5+
COMMAND: "\<(console|grab|inspect|classloader)\>"
66
NULL: "\<null\>"
77
BOOLEAN: "\<(true|false)\>"
88
VARIABLE: "(\[|,)\s*[a-zA-Z0-9]*\s*:"
9-
PLAIN: "(:|\[|,|\])"
10-
OPTION: "\s+[-]{1,2}[a-zA-Z0-9\?]+(\s+|$)"
9+
OPTION: "(^|\s+)[-]{1,2}[a-zA-Z0-9\?]+(\s+|$|=)"
10+
PLAIN: "(:|\[|,|\]|=)"
1111
$BLOCK_COMMENT: "/*, */"
1212
$LINE_COMMENT: "//"
1313
$BALANCED_DELIMITERS "", '"

0 commit comments

Comments
 (0)
Please sign in to comment.