summaryrefslogtreecommitdiff
path: root/src/rc/cpp.kak
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-04-11 13:47:15 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-04-11 13:47:15 +0200
commitc699172110ec0e097b933e9ec0ecb3f0083d3c01 (patch)
treed7a554e0e54668c05753e1d9e997627fbea3edfe /src/rc/cpp.kak
parent8b829d1cdfa0be593eb72145c0dae07eaadc3568 (diff)
highlight strings after macros
Diffstat (limited to 'src/rc/cpp.kak')
-rw-r--r--src/rc/cpp.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/cpp.kak b/src/rc/cpp.kak
index f38e5b25..e6111b54 100644
--- a/src/rc/cpp.kak
+++ b/src/rc/cpp.kak
@@ -15,8 +15,8 @@ hook global WinSetOption filetype=cpp %~
addhl -group cpp-highlight regex "\<(void|int|char|unsigned|float|bool|size_t)\>" 0:type
addhl -group cpp-highlight 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 -group cpp-highlight 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 -group cpp-highlight regex "(?<!')\".*?(?<!\\)(\\\\)*\"" 0:string
addhl -group cpp-highlight regex "^\h*?#.*?(?<!\\)$" 0:macro
+ addhl -group cpp-highlight regex "(?<!')\".*?(?<!\\)(\\\\)*\"" 0:string
addhl -group cpp-highlight regex "(//[^\n]*\n)|(/\*.*?(\*/|\'))" 0:comment
addfilter group cpp-filters
addfilter -group cpp-filters regex ^(\h+)([^\n]*[^([{]\h*|$) \n \n$1