0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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: #15709

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Aliaksei Budavei
2024-09-20 21:37:46 +02:00
committed by Christian Brabandt
parent 35699f1749
commit 50423ab808
6 changed files with 18 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
// This module declaration belongs to the sample project published at
// https://github.com/zzzyxwvut/module-info.git .
import module java.base;
import java.util.ServiceLoader;
/**
@@ -12,7 +12,7 @@ import java.util.ServiceLoader;
* @provides org.demo.internal.Testable
* @see ServiceLoader
*/
module org.module.info.demo
module org.module.info.demo // JDK 23+ (--enable-preview --release 23).
{
requires static jdk.jfr;
requires java.base;