mirror of git://git.sv.gnu.org/nano.git
nanorc.sample - Put in much less crappy example regex rules for c-file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1216 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
6fe98d7d76
commit
5c6379d64f
|
@ -4,6 +4,8 @@ CVS Code -
|
||||||
- global.c:
|
- global.c:
|
||||||
shortcut_init()
|
shortcut_init()
|
||||||
- Rework IFHELP macro (David Benbennick).
|
- Rework IFHELP macro (David Benbennick).
|
||||||
|
- nanorc.sample
|
||||||
|
- Put in much less crappy example regex rules for c-file.
|
||||||
|
|
||||||
GNU nano 1.1.9 - 05/12/2002
|
GNU nano 1.1.9 - 05/12/2002
|
||||||
- General:
|
- General:
|
||||||
|
|
|
@ -87,15 +87,17 @@
|
||||||
# to set the background color to black or white.
|
# to set the background color to black or white.
|
||||||
#
|
#
|
||||||
# syntax "c-file" ".*\.c" ".*\.h"
|
# syntax "c-file" ".*\.c" ".*\.h"
|
||||||
# color brightred "float " "char " "int " "void " "NULL" "[A-Z_]\{2,\}"
|
# color red "\<[A-Z_]\{2,\}\>"
|
||||||
# color brightred "static" "const" "[\ ]struct" "^struct" "if " "while[\ \n\(]"
|
# color green "\<float\>" "\<char\>" "\<int\>" "\<void\>"
|
||||||
# color brightred "do[\ \n\(]" "else[\ \n]" "case " "switch " "break;"
|
# color green "\<static\>" "\<const\>" "\<struct\>"
|
||||||
# color brightcyan "#define" "#include" "#ifn*def" "#endif" "#elif" "#else" "#if "
|
# color brightyellow "\<if\>" "\<while\>" "\<do\>" "\<else\>" "\<case\>" "\<switch\>"
|
||||||
|
# color brightcyan "#define" "#include" "#ifn*def" "#endif"
|
||||||
|
# color brightcyan "#elif" "#else" "#if"
|
||||||
|
|
||||||
# You will in general want your comments and strings to come last, becase
|
# You will in general want your comments and strings to come last, becase
|
||||||
# syntax highlighting rules will be applied in the order they are read in
|
# syntax highlighting rules will be applied in the order they are read in
|
||||||
|
|
||||||
# color brightyellow "<.*[^=\ ]*>" "\".*\""
|
# color brightyellow "<[^= ]*>" "\"[^"]*\""
|
||||||
# color brightblue "//.*"
|
# color brightblue "//.*"
|
||||||
# color brightblue start="/\*.*" end="\*/"
|
# color brightblue start="/\*.*" end="\*/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue