summaryrefslogtreecommitdiff
path: root/src/rc/cpp.kak
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-05-04 04:25:09 +0000
committerMaxime Coste <frrrwww@gmail.com>2012-05-04 04:25:09 +0000
commit55516af9d7cf5b28d4830e8eadd97302d5d9ddca (patch)
treef8e97bf7a25299583d53cad7c32c8f96f107d5ea /src/rc/cpp.kak
parent7158aa00b77e7c4286eabda822dcacc9f20fef36 (diff)
remove {add,rm}grouphl, go back to a -group arg in {add,rm}hl
more consistency, more shared code
Diffstat (limited to 'src/rc/cpp.kak')
-rw-r--r--src/rc/cpp.kak14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rc/cpp.kak b/src/rc/cpp.kak
index 140e36af..deb1ea5d 100644
--- a/src/rc/cpp.kak
+++ b/src/rc/cpp.kak
@@ -1,12 +1,12 @@
hook global WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) \
addhl group hlcpp; \
- addgrouphl hlcpp regex "\<(this|true|false|NULL|nullptr)\>|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" red default; \
- addgrouphl hlcpp regex "\<(void|int|char|unsigned|float|bool|size_t)\>" yellow default; \
- addgrouphl hlcpp regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw)\>" blue default; \
- addgrouphl hlcpp regex "\<(const|auto|namespace|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend)\>" green default; \
- addgrouphl hlcpp regex "(?<!')\"(\\\"|[^\"])*\"" magenta default; \
- addgrouphl hlcpp regex "(\`|(?<=\n))\h*#\h*[^\n]*" magenta default; \
- addgrouphl hlcpp regex "(//[^\n]*\n)|(/\*.*?(\*/|\'))" cyan default; \
+ addhl -group hlcpp regex "\<(this|true|false|NULL|nullptr)\>|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" red default; \
+ addhl -group hlcpp regex "\<(void|int|char|unsigned|float|bool|size_t)\>" yellow default; \
+ addhl -group hlcpp regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw)\>" blue default; \
+ addhl -group hlcpp regex "\<(const|auto|namespace|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend)\>" green default; \
+ addhl -group hlcpp regex "(?<!')\"(\\\"|[^\"])*\"" magenta default; \
+ addhl -group hlcpp regex "(\`|(?<=\n))\h*#\h*[^\n]*" magenta default; \
+ addhl -group hlcpp regex "(//[^\n]*\n)|(/\*.*?(\*/|\'))" cyan default; \
addfilter preserve_indent; \
addfilter cleanup_whitespaces; \
hook window InsertEnd .* exec xs\h+(?=\n)<ret>d