mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
* Nanorc: Copy comment syntax from nano 4.6 nanorcs
This commit is contained in:
parent
c705a50603
commit
97f06f6c73
29 changed files with 47 additions and 2 deletions
1
c.nanorc
1
c.nanorc
|
|
@ -1,6 +1,7 @@
|
|||
## Here is an example for C/C++.
|
||||
##
|
||||
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
|
||||
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)\>"
|
||||
color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue