diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 18:19:47 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 19:01:19 +0800 |
commit | 29efd54e0284727a7dde5608e5eedaef9c00c65f (patch) | |
tree | 554379340ed6b2f2383f72acde55388d58fa4c1f /runtime/syntax/modula3.vim | |
parent | ef9af89da753235c64cbd8b7d700c686bc94dad7 (diff) | |
download | rneovim-29efd54e0284727a7dde5608e5eedaef9c00c65f.tar.gz rneovim-29efd54e0284727a7dde5608e5eedaef9c00c65f.tar.bz2 rneovim-29efd54e0284727a7dde5608e5eedaef9c00c65f.zip |
vim-patch:8.2.4934: string interpolation fails when not evaluating
Problem: String interpolation fails when not evaluating.
Solution: Skip the expression when not evaluating. (closes vim/vim#10398)
https://github.com/vim/vim/commit/70c41241c2701f26a99085e433925a206ca265a3
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/syntax/modula3.vim')
-rw-r--r-- | runtime/syntax/modula3.vim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/syntax/modula3.vim b/runtime/syntax/modula3.vim index 390a1a90ff..67243db600 100644 --- a/runtime/syntax/modula3.vim +++ b/runtime/syntax/modula3.vim @@ -84,9 +84,7 @@ syn case ignore let s:digits = "0123456789ABCDEF" for s:radix in range(2, 16) - " Nvim does not support interpolated strings yet. - " exe $'syn match modula3Integer "\<{s:radix}_[{s:digits[:s:radix - 1]}]\+L\=\>"' - exe 'syn match modula3Integer "\<' .. s:radix .. '_[' .. s:digits[:s:radix - 1] .. ']\+L\=\>"' + exe $'syn match modula3Integer "\<{s:radix}_[{s:digits[:s:radix - 1]}]\+L\=\>"' endfor unlet s:digits s:radix |