mirror of
https://github.com/scopatz/nanorc
synced 2024-12-25 06:44:51 +01:00
Fixed highlighting of inline comments in c.nanorc
This commit is contained in:
parent
dcad108a3b
commit
7d8b17832a
6
c.nanorc
6
c.nanorc
|
@ -3,7 +3,7 @@
|
|||
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino"
|
||||
magic "^(C|C\+\+) (source|program)"
|
||||
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 "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>"
|
||||
color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
|
||||
|
@ -21,7 +21,7 @@ color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\
|
|||
color green "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
|
||||
|
||||
#Operator Color
|
||||
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
|
||||
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
|
||||
|
||||
#Parenthetical Color
|
||||
color magenta "[(){}]" "\[" "\]"
|
||||
|
@ -37,7 +37,7 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*""
|
|||
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
||||
|
||||
## Comment highlighting
|
||||
color brightblue "^\s*//.*"
|
||||
color brightblue "//.*"
|
||||
color brightblue start="/\*" end="\*/"
|
||||
|
||||
# Highlighting for documentation comments
|
||||
|
|
Loading…
Reference in New Issue
Block a user