mirror of
https://github.com/scopatz/nanorc
synced 2024-11-24 09:35:39 +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.
16 lines
607 B
Plaintext
16 lines
607 B
Plaintext
syntax "KickStart" "\.ks$" "\.kickstart$"
|
|
|
|
color brightmagenta "%[a-z]+"
|
|
color cyan "^[[:space:]]*(install|cdrom|text|graphical|volgroup|logvol|reboot|timezone|lang|keyboard|authconfig|firstboot|rootpw|user|firewall|selinux|repo|part|partition|clearpart|bootloader)"
|
|
color cyan "--(name|mirrorlist|baseurl|utc)(=|\>)"
|
|
color brightyellow "\$(releasever|basearch)\>"
|
|
|
|
# Packages and groups
|
|
color brightblack "^@[A-Za-z][A-Za-z-]*"
|
|
color brightred "^-@[a-zA-Z0-9*-]+"
|
|
color red "^-[a-zA-Z0-9*-]+"
|
|
|
|
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
|
color ,green "[[:space:]]+$"
|
|
color ,red " + +| + +"
|