diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2024-09-21 10:26:54 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-09-21 11:25:41 +0200 |
| commit | 059a9e62547e1fb4dc915da258b24844a6bfcd54 (patch) | |
| tree | 73ab95e5fd015d2c7dc0ffdd910593ac06860f68 /runtime/doc | |
| parent | cd230be9189b8c8645610d86752711b38a52c711 (diff) | |
| download | rneovim-059a9e62547e1fb4dc915da258b24844a6bfcd54.tar.gz rneovim-059a9e62547e1fb4dc915da258b24844a6bfcd54.tar.bz2 rneovim-059a9e62547e1fb4dc915da258b24844a6bfcd54.zip | |
vim-patch:50423ab: runtime(java): Optionally recognise _module_ import declarations
Define "g:java_syntax_previews" and include number 476 in
its list to enable this recognition:
------------------------------------------------------------
let g:java_syntax_previews = [476]
------------------------------------------------------------
Reference:
https://openjdk.org/jeps/476
closes: vim/vim#15709
https://github.com/vim/vim/commit/50423ab8086c6e51b86548de77d79db8542ae317
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Diffstat (limited to 'runtime/doc')
| -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 0662607621..d8b41b6429 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1704,11 +1704,12 @@ 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 = [455] + :let g:java_syntax_previews = [455, 476] The supported JEP numbers are to be drawn from this table: `430`: String Templates [JDK 21] `455`: Primitive types in Patterns, instanceof, and switch + `476`: Module Import Declarations 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 |