mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
b64de43467
The commit mariuszs/nanorc@e5cc8be863 introduced a number of rc files that cause tabs to always show as red (even with trailing spaces). Adjust the behavior according to changes in https://github.com/nanorc/nanorc/blob/master/mixins/lint.nanorc, which seems to be an updated source of the original commit. Make tabs appear green without trailing characters, red with trailing spaces, and uncolored when followed by any other character.
13 lines
395 B
Plaintext
13 lines
395 B
Plaintext
syntax "peg" "\.l?peg$"
|
|
|
|
color cyan "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-"
|
|
color blue "\^[+-]?[0-9]+"
|
|
color red "[-+*?^/!&]|->|<-|=>"
|
|
color brightyellow "%[A-Za-z][A-Za-z0-9_]*"
|
|
color magenta "\[[^]]*\]"
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
color brightblack "(^|[[:space:]])\-\-.*$"
|
|
color brightwhite,cyan "TODO:?"
|
|
color ,green "[[:space:]]+$"
|
|
color ,red " + +| + +"
|