Skip to content

Commit f9e1c11

Browse files
Add record keyword
As of Java 16 Java supports a new class type known as records. This means a new keyword called "record". Adding this into the Java syntax. for compatibility. This should fix textmate#64
1 parent 79b8b61 commit f9e1c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Syntaxes/Java.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@
431431
<key>class</key>
432432
<dict>
433433
<key>begin</key>
434-
<string>(?=\w?[\w\s]*(?:class|(?:@)?interface|enum)\s+\w+)</string>
434+
<string>(?=\w?[\w\s]*(?:class|(?:@)?interface|enum|record)\s+\w+)</string>
435435
<key>end</key>
436436
<string>}</string>
437437
<key>endCaptures</key>

0 commit comments

Comments
 (0)