diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-08-28 10:21:59 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-08-28 11:22:23 +0200 |
commit | 3a61f05dd2d6cb2ac9bca4795467f459595e58dd (patch) | |
tree | 41142e927e8ccb50b639a86d9f9ca7b8617956eb /runtime/lua/vim/loader.lua | |
parent | 3bcd5624beec5d3fd90b9d7977fdc36a61ee1643 (diff) | |
download | rneovim-3a61f05dd2d6cb2ac9bca4795467f459595e58dd.tar.gz rneovim-3a61f05dd2d6cb2ac9bca4795467f459595e58dd.tar.bz2 rneovim-3a61f05dd2d6cb2ac9bca4795467f459595e58dd.zip |
vim-patch:8556e23: runtime(java): Provide support for syntax preview features
Introduce a new API variable "g:java_syntax_previews" whose
value must be a list of syntax preview feature numbers.
Enumerate the currently supported numbers in a table at the
end of the documentation entry for "ft-java-syntax".
Also, disable the recognition of String Templates. Despite
the withdrawal of this preview feature in its proposed form
from the upcoming JDK 23 release and the fact that the JDK
22 release is coming to EOL this September, an earlier
iteration of this preview feature was included in JDK 21
(LTS) whose EOL is projected to fall due in late 2028 and,
therefore, retain the current implementation.
Define "g:java_syntax_previews" and include number 430 in
its list to enable the recognition of String Templates:
------------------------------------------------------------
let g:java_syntax_previews = [430]
------------------------------------------------------------
References:
https://openjdk.org/jeps/430 (Preview)
https://openjdk.org/jeps/459 (Second Preview)
https://openjdk.org/jeps/465 (Third Preview)
https://mail.openjdk.org/pipermail/amber-spec-experts/2024-April/004106.html
closes: vim/vim#15579
https://github.com/vim/vim/commit/8556e23ee90448f01b612d337599f6e8f86679ea
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Diffstat (limited to 'runtime/lua/vim/loader.lua')
0 files changed, 0 insertions, 0 deletions