From f5883e0d450ccc3345cd8cfdfbeddcfe121d7472 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 19 Sep 2024 18:56:19 +0200 Subject: 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> --- runtime/doc/syntax.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/doc') 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 -- cgit