Skip to content

Commit

Permalink
Add record keyword
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mattbertolini authored Jun 20, 2022
1 parent 79b8b61 commit f9e1c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Syntaxes/Java.plist
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
<key>class</key>
<dict>
<key>begin</key>
<string>(?=\w?[\w\s]*(?:class|(?:@)?interface|enum)\s+\w+)</string>
<string>(?=\w?[\w\s]*(?:class|(?:@)?interface|enum|record)\s+\w+)</string>
<key>end</key>
<string>}</string>
<key>endCaptures</key>
Expand Down

0 comments on commit f9e1c11

Please sign in to comment.