diff options
author | Justin Patera <serialhex@gmail.com> | 2016-10-23 07:43:52 +0300 |
---|---|---|
committer | Justin Patera <serialhex@gmail.com> | 2016-10-23 07:43:52 +0300 |
commit | b8943fb584801c9acc920eabcfef31befe0f11ba (patch) | |
tree | 981137fb12f55c7c9416716b2bf9009160fe4a76 /c-file.nanorc | |
parent | 2f549bd546f626a5105dbd267d683dd8656e6eee (diff) |
adding a few files to the mix
Diffstat (limited to 'c-file.nanorc')
-rw-r--r-- | c-file.nanorc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/c-file.nanorc b/c-file.nanorc new file mode 100644 index 0000000..2b56a6d --- /dev/null +++ b/c-file.nanorc @@ -0,0 +1,10 @@ +syntax "c-file" "\.(c|h)$" +color red "\<[A-Z_]{2,}\>" +color green "\<(float|double|char|int|short|long|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>" +color brightyellow "\<(for|if|while|do|else|case|switch|goto|continue|break|return)\>" +color brightcyan "^ *# *(define|undef|include|ifn?def|endif|elif|else|if)" +color brightmagenta "'([^\]|(\\['abfnrtv\\]))'" "'\\(([0-7][0-7]?)|([0-3][0-7][0-7]))'" "'\\x[0-9A-Fa-f][0-9A-Fa-f]?'" +color brightyellow "<[^= ]*>" ""(\\.|[^\"])*"" +color brightyellow start=""(\\.|[^\"])*\\ *$" end="^(\\.|[^\"])*"" +color brightblue "//.*" +color brightblue start="/\*" end="\*/" |