mirror of
https://github.com/scopatz/nanorc
synced 2025-02-22 03:10:04 +01:00
[C] Add highlightings for "TODO" and g++ linter
This commit is contained in:
parent
b5b285fbf9
commit
10a8569c2d
6
c.nanorc
6
c.nanorc
@ -2,6 +2,9 @@
|
|||||||
##
|
##
|
||||||
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino$"
|
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino$"
|
||||||
magic "^(C|C\+\+) (source|program)"
|
magic "^(C|C\+\+) (source|program)"
|
||||||
|
|
||||||
|
linter g++ -fshow-column
|
||||||
|
|
||||||
comment "//"
|
comment "//"
|
||||||
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
||||||
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 "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
|
||||||
@ -50,3 +53,6 @@ color magenta "@author.*"
|
|||||||
|
|
||||||
## Trailing whitespace
|
## Trailing whitespace
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
|
|
||||||
|
## Reminders
|
||||||
|
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user