Mercurial > vim
view runtime/syntax/testdir/input/vim_expr.vim @ 34262:95f54d96baba
runtime(vim): Update syntax file (#13948)
Commit: https://github.com/vim/vim/commit/e3e3934bb18294b1a5636ed65299d3479f289a8e
Author: dkearns <dougkearns@gmail.com>
Date: Fri Feb 2 07:44:26 2024 +1100
runtime(vim): Update syntax file (https://github.com/vim/vim/issues/13948)
Improve string escape sequence and special key matching.
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 01 Feb 2024 21:45:03 +0100 |
parents | 734467c89330 |
children | 4de3dea72f1c |
line wrap: on
line source
" String echo 'It''s a string' echo 'tab: \t, new line: \n, backslash: \\' echo "tab: \t, new line: \n, backslash: \\" " String escape sequences echo "\316 - \31 - \3 - \x1f - \xf - \X1F - \XF - \u02a4 - \U000002a4 - \b - \e - \f - \n - \r - \t - \\ - \" - \<C-W>" echo '\316 \31 \3 \x1f \xf \X1F \XF \u02a4 \U000002a4 \b \e \f \n \r \t \\ \" \<C-W>' echo "\3160 - \x1f0 - \X1F0 - \u02a40 - \U000002a40" echo $"\316 - \31 - \3 - \x1f - \xf - \X1F - \XF - \u02a4 - \U000002a4 - \b - \e - \f - \n - \r - \t - \\ - \" - \<C-W>" echo $'\316 \31 \3 \x1f \xf \X1F \XF \u02a4 \U000002a4 \b \e \f \n \r \t \\ \" \<C-W>' echo $"\3160 - \x1f0 - \X1F0 - \u02a40 - \U000002a40" echo "\<C-a>" echo "\<*C-a>" echo "\<C->>" echo "\<*C->>" echo "\<C->>>" echo "\<*C->>>" " String interpolation echo 'Don''t highlight interpolation: {{ {1 + 2} }}' echo "Don't highlight interpolation: {{ {1 + 2} }}" echo $'Highlight interpolation:\t{{ { string({'foo': 'bar'}) } }}' echo $'Highlight interpolation:\t{{ { $'nested: {{ {1 + 2} }}' } }}' echo $"Highlight interpolation:\t{{ { string({"foo": "bar"}) } }}" echo $"Highlight interpolation:\t{{ { $"nested: {{ {1 + 2} }}" } }}"