From 0234378bcfa56d89b87cc97914b0d6951d72133c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 15 Jan 2012 03:04:37 +0000 Subject: [PATCH] kakrc: refactor using lists of commands for hooks --- src/kakrc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/kakrc b/src/kakrc index 9ec64fd6..c86c98d8 100644 --- a/src/kakrc +++ b/src/kakrc @@ -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) addfilter preserve_indent -hook WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) addfilter cleanup_whitespaces +hook WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) \ + addhl hlcpp; \ + addfilter preserve_indent; \ + addfilter cleanup_whitespaces + hook WinInsertEnd .* exec xs\h+(?=\n)d hook WinCreate .* addhl regex \h+(?=\n) default red -hook WinCreate (.*/)?kakrc addhl regex (hook|addhl|rmhl|addfilter|rmfilter|exec) green default -hook WinCreate (.*/)?kakrc addhl regex (?<=hook)\h+\w+\h+\H+ magenta default -hook WinCreate (.*/)?kakrc addhl regex (?<=hook)\h+\w+ cyan default +hook WinCreate (.*/)?kakrc \ + addhl regex (hook|addhl|rmhl|addfilter|rmfilter|exec) green default; \ + addhl regex (?<=hook)\h+\w+\h+\H+ magenta default; \ + addhl regex (?<=hook)\h+\w+ cyan default