runtime(java): Update java[CR]_JavaLang type lists (#14297)

Commit: 
https://github.com/vim/vim/commit/63d68c2c218eeb80c164e1c56c53f51a9e92a5eb
Author: Aliaksei Budavei <32549825+zzzyxw...@users.noreply.github.com>
Date:   Tue Mar 26 20:12:05 2024 +0300

    runtime(java): Update java[CR]_JavaLang type lists 
(https://github.com/vim/vim/issues/14297)
    
    - Add to the list of java.lang runtime exceptions two new
      types: MatchException (Pattern Matching for _switch_) and
      WrongThreadException (Virtual Threads).
    - "Demote" Compiler (removed in JDK 21) from the list of
      java.lang class types to a new list javaLangDeprecated.
    
    References:
    https://bugs.openjdk.org/browse/JDK-8205129
    https://bugs.openjdk.org/browse/JDK-8282274
    https://bugs.openjdk.org/browse/JDK-8284161
    
    Signed-off-by: Aliaksei Budavei <0x000...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/java.vim b/runtime/syntax/java.vim
index cf27e0dc9..1f0c15803 100644
--- a/runtime/syntax/java.vim
+++ b/runtime/syntax/java.vim
@@ -2,7 +2,7 @@
 " Language:    Java
 " Maintainer:  Claudio Fleiner <clau...@fleiner.com>
 " URL:          
https://github.com/fleiner/vim/blob/master/runtime/syntax/java.vim
-" Last Change: 2024 Mar 24
+" Last Change: 2024 Mar 25
 
 " Please check :help java.vim for comments on some of the options available.
 
@@ -91,7 +91,7 @@ if exists("java_highlight_all")  || 
exists("java_highlight_java")  || exists("ja
   " keywords can be pre-sorted and appended without disturbing
   " the current keyword placement. The below _match_es follow suit.
 
-  syn keyword javaR_JavaLang ArithmeticException 
ArrayIndexOutOfBoundsException ArrayStoreException ClassCastException 
IllegalArgumentException IllegalMonitorStateException 
IllegalThreadStateException IndexOutOfBoundsException 
NegativeArraySizeException NullPointerException NumberFormatException 
RuntimeException SecurityException StringIndexOutOfBoundsException 
IllegalStateException UnsupportedOperationException 
EnumConstantNotPresentException TypeNotPresentException IllegalCallerException 
LayerInstantiationException
+  syn keyword javaR_JavaLang ArithmeticException 
ArrayIndexOutOfBoundsException ArrayStoreException ClassCastException 
IllegalArgumentException IllegalMonitorStateException 
IllegalThreadStateException IndexOutOfBoundsException 
NegativeArraySizeException NullPointerException NumberFormatException 
RuntimeException SecurityException StringIndexOutOfBoundsException 
IllegalStateException UnsupportedOperationException 
EnumConstantNotPresentException TypeNotPresentException IllegalCallerException 
LayerInstantiationException WrongThreadException MatchException
   syn cluster javaTop add=javaR_JavaLang
   syn cluster javaClasses add=javaR_JavaLang
   hi def link javaR_JavaLang javaR_Java
@@ -111,6 +111,8 @@ if exists("java_highlight_all")  || 
exists("java_highlight_java")  || exists("ja
   syn match   javaC_JavaLang "\%(\<Enum\.\)\@<=\<EnumDesc\>"
   syn keyword javaC_JavaLang Boolean Character Class ClassLoader Compiler 
Double Float Integer Long Math Number Object Process Runtime SecurityManager 
String StringBuffer Thread ThreadGroup Byte Short Void InheritableThreadLocal 
Package RuntimePermission ThreadLocal StrictMath StackTraceElement Enum 
ProcessBuilder StringBuilder ClassValue Module ModuleLayer StackWalker Record
   syn match   javaC_JavaLang "\<System\>"      " See javaDebug.
+  " As of Java 21, java.lang.Compiler is no more (deprecated in Java 9).
+  syn keyword javaLangDeprecated Compiler
   syn cluster javaTop add=javaC_JavaLang
   syn cluster javaClasses add=javaC_JavaLang
   hi def link javaC_JavaLang javaC_Java

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rpAOC-007Xeb-Ne%40256bit.org.

Raspunde prin e-mail lui