kakrc: refactor using lists of commands for hooks

This commit is contained in:
Maxime Coste 2012-01-15 03:04:37 +00:00
parent f259af9326
commit 0234378bcf

View File

@ -1,9 +1,12 @@
hook WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) addhl hlcpp hook WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) \
hook WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) addfilter preserve_indent addhl hlcpp; \
hook WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) addfilter cleanup_whitespaces addfilter preserve_indent; \
addfilter cleanup_whitespaces
hook WinInsertEnd .* exec xs\h+(?=\n)<ret>d hook WinInsertEnd .* exec xs\h+(?=\n)<ret>d
hook WinCreate .* addhl regex \h+(?=\n) default red hook WinCreate .* addhl regex \h+(?=\n) default red
hook WinCreate (.*/)?kakrc addhl regex (hook|addhl|rmhl|addfilter|rmfilter|exec) green default hook WinCreate (.*/)?kakrc \
hook WinCreate (.*/)?kakrc addhl regex (?<=hook)\h+\w+\h+\H+ magenta default addhl regex (hook|addhl|rmhl|addfilter|rmfilter|exec) green default; \
hook WinCreate (.*/)?kakrc addhl regex (?<=hook)\h+\w+ cyan default addhl regex (?<=hook)\h+\w+\h+\H+ magenta default; \
addhl regex (?<=hook)\h+\w+ cyan default