1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 23:34:12 +03:00

Region highlighters are still bugged, disable regions for cpp highlight

This commit is contained in:
Maxime Coste 2014-01-22 23:32:56 +00:00
parent 4f4a626754
commit a2ecca8d8b

View File

@ -45,8 +45,9 @@ 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 "\<(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 region %{(?<!')"} %{(?<!\\)(\\\\)*"} string
addhl -def-group cpp region /\* \*/ comment
# addhl -def-group cpp region %{(?<!')"} %{(?<!\\)(\\\\)*"} string
# addhl -def-group cpp region /\* \*/ comment
addhl -def-group cpp regex "(?<!')\".*?(?<!\\)(\\\\)*\"" 0:string
addhl -def-group cpp regex "(//[^\n]*\n)" 0:comment
hook global WinSetOption filetype=cpp %[