mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
[C] Add highlightings for "TODO" and g++ linter
This commit is contained in:
parent
b5b285fbf9
commit
10a8569c2d
1 changed files with 6 additions and 0 deletions
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$"
|
||||
magic "^(C|C\+\+) (source|program)"
|
||||
|
||||
linter g++ -fshow-column
|
||||
|
||||
comment "//"
|
||||
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)\>"
|
||||
|
|
@ -50,3 +53,6 @@ color magenta "@author.*"
|
|||
|
||||
## Trailing whitespace
|
||||
color ,green "[[:space:]]+$"
|
||||
|
||||
## Reminders
|
||||
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue