tweaks: swap two parts of specific regexes, for consistency with others

This order makes more sense to me: first the part that allows
almost everything, and then the special case.
This commit is contained in:
Benno Schulenberg
2021-10-27 09:45:42 +02:00
parent 7bd68365ec
commit 1cd92458e9
15 changed files with 17 additions and 17 deletions

View File

@@ -17,7 +17,7 @@ color cyan "\<([0-9]+|0x[0-9A-Fa-f]+)\>"
color cyan "\<(true|false|null|undefined)\>"
# Strings.
color brightmagenta ""(\\.|[^"\])*"|'(\\.|[^'\])*'|`(\\.|[^`\])*`"
color brightmagenta ""([^"\]|\\.)*"|'([^'\]|\\.)*'|`([^`\]|\\.)*`"
# Comments.
color brightblue "(^|[[:blank:]])//.*"
color brightblue start="/\*" end="\*/"