Mercurial > vim
view runtime/syntax/testdir/input/vim_expr.vim @ 34275:4de3dea72f1c
runtime(vim): Update syntax file (#13969)
Commit: https://github.com/vim/vim/commit/7c5aeaffa2bec8f16f36bd33a749a6e965d8ab30
Author: dkearns <dougkearns@gmail.com>
Date: Sun Feb 4 04:18:31 2024 +1100
runtime(vim): Update syntax file (https://github.com/vim/vim/issues/13969)
Improve string interpolation highlighting.
Use the vimSep group to highlight interpolation braces as vimOperParen
has no highlighting of its own and employs vimSep via matchgroup.
Add vimNumber to the interpolation group's contained list.
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: thinca <thinca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 03 Feb 2024 18:30:06 +0100 |
parents | 95f54d96baba |
children | 0591aba1489d |
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} }}" } }}"