summaryrefslogtreecommitdiff
path: root/src/kakrc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-07-31 14:22:57 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-07-31 14:22:57 +0200
commit36070dd429af69f1042f4ee56488a960c4d8e7ef (patch)
treebdf9ab393e5b8e632a46319d4d3923fe19608e37 /src/kakrc
parentac2676cbcfa3be81b6136efc28b009bc25489c30 (diff)
CommandManager: rework command parser
a new type of strings is supported inspired by the ruby strings. %<delimiter>content<delimiter>, if opening delimiter is one of ([{<, then closing delimiter is the matching )]}> and balanced delimiters in the string needs not to be escaped, else the closing delimiter is the same as the opening one. shell expansion is available through %sh<delimiter>command<delimiter> syntax. Command flags have been removed, as these strings provide proper nesting support, so now, you can for example do: def command %{ echo %sh{ ls } }
Diffstat (limited to 'src/kakrc')
-rw-r--r--src/kakrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kakrc b/src/kakrc
index 4fc8cd37..27e4e289 100644
--- a/src/kakrc
+++ b/src/kakrc
@@ -1,5 +1,5 @@
-hook global WinCreate .* addhl regex \h+(?=\n) default red
-hook global WinCreate .* addhl number_lines
+hook global WinCreate .* %{ addhl regex \h+(?=\n) default red }
+hook global WinCreate .* %{ addhl number_lines }
runtime rc/cpp.kak
runtime rc/kakrc.kak