use region highlighter for cpp
This commit is contained in:
parent
8b2f340238
commit
054ae08a9f
|
@ -43,8 +43,10 @@ addhl -def-group cpp regex "\<(void|int|char|unsigned|float|bool|size_t)\>" 0:ty
|
||||||
addhl -def-group cpp regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw|new|delete|and|or|not|operator|explicit)\>" 0:keyword
|
addhl -def-group cpp regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw|new|delete|and|or|not|operator|explicit)\>" 0:keyword
|
||||||
addhl -def-group cpp regex "\<(const|mutable|auto|namespace|inline|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend|extern|typename|override|final)\>" 0:attribute
|
addhl -def-group cpp regex "\<(const|mutable|auto|namespace|inline|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend|extern|typename|override|final)\>" 0:attribute
|
||||||
addhl -def-group cpp regex "^\h*?#.*?(?<!\\)$" 0:macro
|
addhl -def-group cpp regex "^\h*?#.*?(?<!\\)$" 0:macro
|
||||||
addhl -def-group cpp regex "(?<!')\".*?(?<!\\)(\\\\)*\"" 0:string
|
#addhl -def-group cpp regex "(?<!')\".*?(?<!\\)(\\\\)*\"" 0:string
|
||||||
addhl -def-group cpp regex "(//[^\n]*\n)|(/\*.*?(\*/|\'))" 0:comment
|
addhl -def-group cpp regex "(//[^\n]*\n)" 0:comment
|
||||||
|
addhl -def-group cpp region /* */ comment
|
||||||
|
addhl -def-group cpp region '"' '"' %{\} string
|
||||||
|
|
||||||
hook global WinSetOption filetype=cpp %[
|
hook global WinSetOption filetype=cpp %[
|
||||||
addhl ref cpp
|
addhl ref cpp
|
||||||
|
|
Loading…
Reference in New Issue
Block a user