-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathrcfiles-new.nanorc
31 lines (28 loc) · 976 Bytes
/
rcfiles-new.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## this .rc is not meant for rcs in etc but those used in apps like wine
syntax "rc" "\.rc$"
color cyan start="\{" end="\}"
color brightgreen start="<" end=">"
color brightyellow "(\"(\\.|[^\"])*\"|[0-9])"
color green start="\/\*" end="\*\/"
color yellow "(#(define|include)|LANGUAGE|FONT)"
### all *rc files ( e.g. .bashrc, inputrc, xtermcontrol .... )
#syntax "rcfiles" "(\.|/)rc$" "(\.|/)control$"
syntax "rcfiles" "\.?((ba|c|z)sh|input|xinit|eix|wminet|gtk)rc$"
color red "'(\\.|[^'])*'"
color blue ""(\\.|[^\"])*""
color magenta "[A-Z0-9\_]+="
color magenta "\<(sudo)\>"
color cyan "\<(alias)\>"
color brightcyan "\<(export)\>"
color yellow "\<(shopt)\>"
color brightred "\<(umask)\>.*$"
color green "#.*$"
## rc...
syntax "rc2" "(wop|wget)rc$"
color cyan "\=.*$"
color brightgreen start="<" end=">"
color brightyellow "[0-9]"
icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]\="
color brightred "[[:space:]]off"
color brightgreen "[[:space:]]on"
color green "#.*$"