diff options
author | thinca <thinca@gmail.com> | 2024-01-28 18:57:23 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-01-28 18:58:14 +0100 |
commit | cf8695d48cdded63043430af5a84185e9614e84c (patch) | |
tree | a7eedcfd180e184f46528868043dbe344333b61b /runtime/syntax/testdir/input | |
parent | 21ce159e05615fd139c564b734a4bffc9f3fdc4b (diff) |
runtime(vim): Highlight string interpolation
closes: #13923
Signed-off-by: thinca <thinca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/syntax/testdir/input')
-rw-r--r-- | runtime/syntax/testdir/input/vim_expr.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/vim_expr.vim b/runtime/syntax/testdir/input/vim_expr.vim new file mode 100644 index 0000000000..0547e9bd43 --- /dev/null +++ b/runtime/syntax/testdir/input/vim_expr.vim @@ -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} }}" } }}" |