mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
runtime(vim): Highlight string interpolation
closes: #13923 Signed-off-by: thinca <thinca@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
21ce159e05
commit
cf8695d48c
14
runtime/syntax/testdir/input/vim_expr.vim
Normal file
14
runtime/syntax/testdir/input/vim_expr.vim
Normal file
@@ -0,0 +1,14 @@
|
||||
" String
|
||||
|
||||
echo 'It''s a string'
|
||||
echo 'tab: \t, new line: \n, backslash: \\'
|
||||
echo "tab: \t, new line: \n, backslash: \\"
|
||||
|
||||
" 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} }}" } }}"
|
Reference in New Issue
Block a user