diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-09-19 18:56:19 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-09-21 11:25:41 +0200 |
commit | f5883e0d450ccc3345cd8cfdfbeddcfe121d7472 (patch) | |
tree | 99973dc3ac576c2693b05ef63e8963cb8e2d3ba4 /runtime/doc/syntax.txt | |
parent | 674c1aac11f4a4dd02945a1cc7061b5fc59d048c (diff) | |
download | rneovim-f5883e0d450ccc3345cd8cfdfbeddcfe121d7472.tar.gz rneovim-f5883e0d450ccc3345cd8cfdfbeddcfe121d7472.tar.bz2 rneovim-f5883e0d450ccc3345cd8cfdfbeddcfe121d7472.zip |
vim-patch:2307945: runtime(java): Optionally recognise all primitive constants in _switch-case_ labels
Define "g:java_syntax_previews" and include number 455 in
its list to enable this recognition:
------------------------------------------------------------
let g:java_syntax_previews = [455]
------------------------------------------------------------
Reference:
https://openjdk.org/jeps/455
closes: vim/vim#15698
https://github.com/vim/vim/commit/23079450a8dea98f9d4e3e74ab57866914b0a813
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r-- | runtime/doc/syntax.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index e7960a5cc8..0662607621 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1704,10 +1704,11 @@ cycles for such a feature to become either integrated into the platform or withdrawn from this effort. To cater for early adopters, there is optional support in Vim for syntax related preview features that are implemented. You can request it by specifying a list of preview feature numbers as follows: > - :let g:java_syntax_previews = [430] + :let g:java_syntax_previews = [455] The supported JEP numbers are to be drawn from this table: `430`: String Templates [JDK 21] + `455`: Primitive types in Patterns, instanceof, and switch Note that as soon as the particular preview feature will have been integrated into the Java platform, its entry will be removed from the table and related |