Skip to content

Commit

Permalink
args.nanorc: improve options highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jan 24, 2022
1 parent 4b74323 commit f988d35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/src/main/scripts/nanorc/args.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ syntax "ARGS"

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

0 comments on commit f988d35

Please sign in to comment.