mirror of
https://github.com/scopatz/nanorc
synced 2024-11-16 14:14:15 +01:00
commit
e7974027ca
7
c.nanorc
7
c.nanorc
@ -2,11 +2,14 @@
|
|||||||
##
|
##
|
||||||
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
|
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
|
||||||
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
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 "\<(float|double|bool|char|wchar_t|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 "\<((s?size)|(char(16|32))|((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 green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
|
||||||
color green "\<(for|if|while|do|else|case|default|switch)\>"
|
color green "\<(for|if|while|do|else|case|default|switch)\>"
|
||||||
color green "\<(try|throw|catch|operator|new|delete)\>"
|
color green "\<(try|throw|catch|operator|new|delete)\>"
|
||||||
|
color green "\<((const|dynamic|reinterpret|static)_cast)\>"
|
||||||
|
color green "\<(alignas|alignof|asm|auto|compl|concept|constexpr|decltype|export|noexcept|nullptr|requires|static_assert|thread_local|typeid|override|final)\>"
|
||||||
|
color green "\<(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\>"
|
||||||
color brightmagenta "\<(goto|continue|break|return)\>"
|
color brightmagenta "\<(goto|continue|break|return)\>"
|
||||||
color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
|
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}'"
|
color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
|
||||||
|
Loading…
Reference in New Issue
Block a user