diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-07-31 14:22:57 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-07-31 14:22:57 +0200 |
| commit | 36070dd429af69f1042f4ee56488a960c4d8e7ef (patch) | |
| tree | bdf9ab393e5b8e632a46319d4d3923fe19608e37 /src/kakrc | |
| parent | ac2676cbcfa3be81b6136efc28b009bc25489c30 (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/kakrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
