My favorites
▼
|
Sign in
nanosyntax
Nano Syntax Highlighting Config Files
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
syntax-nanorc
/
c.nanorc
r2
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
## Here is an example for C/C++.
##
syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
color brightred "\<[A-Z_][0-9A-Z_]+\>"
color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>"
color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
color brightyellow "\<(for|if|while|do|else|case|default|switch)\>"
color brightyellow "\<(try|throw|catch|operator|new|delete)\>"
color magenta "\<(goto|continue|break|return)\>"
color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
##
## GCC builtins
color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
##
## String highlighting. You will in general want your comments and
## strings to come last, because syntax highlighting rules will be
## applied in the order they are read in.
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
##
## This string is VERY resource intensive!
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Comment highlighting
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
## Trailing whitespace
color ,green "[[:space:]]+$"
Show details
Hide details
Change log
r2
by Lucractius on Oct 2, 2008
Diff
First Import of syntax files
Go to:
/trunk/nanolauncher.sh
/trunk/syntax-nanorc
/trunk/syntax-nanorc/apache2.nanorc
.../syntax-nanorc/apacheconf.nanorc
.../syntax-nanorc/aptsrclist.nanorc
/trunk/syntax-nanorc/asm.nanorc
/trunk/syntax-nanorc/bash.nanorc
/trunk/syntax-nanorc/c-file.nanorc
/trunk/syntax-nanorc/c.nanorc
...k/syntax-nanorc/changelog.nanorc
.../syntax-nanorc/changelogs.nanorc
/trunk/syntax-nanorc/clike.nanorc
/trunk/syntax-nanorc/conf.nanorc
/trunk/syntax-nanorc/config.nanorc
/trunk/syntax-nanorc/config2.nanorc
/trunk/syntax-nanorc/config3.nanorc
...syntax-nanorc/configfiles.nanorc
/trunk/syntax-nanorc/conky.nanorc
/trunk/syntax-nanorc/css.nanorc
/trunk/syntax-nanorc/debian.nanorc
/trunk/syntax-nanorc/default.nanorc
/trunk/syntax-nanorc/delphi.nanorc
/trunk/syntax-nanorc/desc.nanorc
...nk/syntax-nanorc/dotemacs.nanorc
/trunk/syntax-nanorc/dummy.nanorc
/trunk/syntax-nanorc/ebuild.nanorc
.../syntax-nanorc/ekghistory.nanorc
...k/syntax-nanorc/etc-stuff.nanorc
.../syntax-nanorc/etcportage.nanorc
/trunk/syntax-nanorc/etcxml.nanorc
/trunk/syntax-nanorc/gentoo.nanorc
/trunk/syntax-nanorc/groff.nanorc
/trunk/syntax-nanorc/havp.nanorc
/trunk/syntax-nanorc/html.nanorc
...ax-nanorc/httpstatuscodes.nanorc
/trunk/syntax-nanorc/info.nanorc
/trunk/syntax-nanorc/ini.nanorc
/trunk/syntax-nanorc/initng.nanorc
.../syntax-nanorc/initscript.nanorc
/trunk/syntax-nanorc/java.nanorc
/trunk/syntax-nanorc/js.nanorc
...k/syntax-nanorc/log-stuff.nanorc
/trunk/syntax-nanorc/maincf.nanorc
...nk/syntax-nanorc/makefile.nanorc
/trunk/syntax-nanorc/man.nanorc
...syntax-nanorc/mcchangelog.nanorc
...nk/syntax-nanorc/mimetype.nanorc
/trunk/syntax-nanorc/mutt.nanorc
/trunk/syntax-nanorc/named.nanorc
/trunk/syntax-nanorc/nanorc.nanorc
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1499 bytes, 30 lines
View raw file
Powered by
Google Project Hosting