Add Nano tool - user-friendly text editor
[tomato.git] / release / src / router / nano / doc / syntax / objc.nanorc
blobcdf6e485f13d8e382a709b7b2f627c73eb1bcdc0
1 ## Here is an example for C/C++/Obj-C.
2 ##
3 syntax "m" "\.m$"
6 ## Stuffs
7 color brightwhite "\<[A-Z_][0-9A-Z_]+\>" 
8 color green "\<(float|double|BOOL|bool|char|int|short|long|id|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
9 color green "\<[[:alpha:]_][[:alnum:]_]*_t\>"
10 color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
11 color brightgreen "\<(for|if|while|do|else|case|default|switch)\>"
12 color brightgreen "\<(try|throw|catch|operator|new|delete)\>"
13 color brightgreen "\<(goto|continue|break|return)\>"
14 color brightgreen "@\<(en(code|d)|i(mplementation|nterface)|selector)\>"
16 ## GCC builtins
17 color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
19 ## Selector/method
20 color brightmagenta "(^|[[:space:]])\[.*[[:space:]].*\]"
21 color white ":[[:alnum:]]*"
22 color magenta "[[:alnum:]]*:"
23 color white "\[[^][:space:]]*\]"
26 ## String highlighting.  You will in general want your comments and
27 ## strings to come last, because syntax highlighting rules will be
28 ## applied in the order they are read in.
29 color brightblack "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
30 color brightblack "<[^=         ]*>" ""(\\.|[^"])*""
31 color brightblue "@"(\\.|[^"])*""
33 ## This string is VERY resource intensive!
34 ## color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
36 color brightblue "^[[:space:]]*#[[:space:]]*(define|include|import|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
38 ## Comment highlighting
39 color yellow "//.*"
40 color yellow start="/\*" end="\*/"