diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-03-10 10:19:15 +0800 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-03-10 10:36:26 +0800 |
commit | 3c66e285cc4e7bc9953945caac91049463dc1d75 (patch) | |
tree | 8be148cc7f23efba26a47b6e9e7c1c7f6ae5aeea /runtime/lua/vim/_watch.lua | |
parent | 6052b346f1b7a3fb616dfcefe3bc05cb6fe3f2f3 (diff) | |
download | rneovim-3c66e285cc4e7bc9953945caac91049463dc1d75.tar.gz rneovim-3c66e285cc4e7bc9953945caac91049463dc1d75.tar.bz2 rneovim-3c66e285cc4e7bc9953945caac91049463dc1d75.zip |
vim-patch:a2c65809dafe
runtime(java): Recognise string templates (vim/vim#14150)
As this is encouraged in the referenced JEPs, "to visually
distinguish a string template from a string literal, and
a text block template from a text block", the default
colours for java\%[Debug]StrTempl are made distinct from
java\%[Debug]String.
According to ยง3.2 Lexical Translations (JLS, c. 1996 or any
more recent version), line terminators, white space, and
comments are discarded before tokens are accepted. Since
a template expression comprises a template processor, a dot,
and a template, it may be visually appealing to break up
its head across a few lines whenever its tail already spans
multiple lines. Curiously, no allowance for it is made in
the distributed tests for OpenJDK 21; the proposed regexp
patterns take in consideration a line terminator and white
space after a dot.
References:
https://openjdk.org/jeps/430 (Preview)
https://openjdk.org/jeps/459 (Second Preview)
https://openjdk.org/jeps/465
https://github.com/vim/vim/commit/a2c65809dafe5c4f45f278fddf368c7c971d83e9
Co-authored-by: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim/_watch.lua')
0 files changed, 0 insertions, 0 deletions