Skip to content

Commit

Permalink
[Java] Fix allowed method modifiers
Browse files Browse the repository at this point in the history
Both `native` and `strictfp` are valid method modifiers.
  • Loading branch information
deathaxe committed Oct 6, 2021
1 parent f6f6890 commit 053a2ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Java/Java.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ variables:
# https://docs.oracle.com/javase/specs/jls/se13/html/jls-8.html#jls-8.4.3
# https://docs.oracle.com/javase/specs/jls/se13/html/jls-9.html#jls-9.4
method_modifier: |-
(?x: public | protected | private | abstract | default | final | static | synchronized )
(?x: public | protected | private | abstract | default | final | native | static | strictfp | synchronized )
method_no_modifier: |-
(?x: native | sealed | strictfp | transient | volatile )
(?x: sealed | transient | volatile )
# Storage Types
storage_types: |-
Expand Down
4 changes: 2 additions & 2 deletions Java/tests/syntax_test_java.java
Original file line number Diff line number Diff line change
Expand Up @@ -3375,9 +3375,9 @@ native strictfp transient volatile void method() {private}
// ^^ meta.function.parameters.java meta.group.java
// ^ meta.function.java
// ^^^^^^^^^ meta.function.java meta.block.java
//^^^^^^ invalid.illegal.unexpected-keyword.java
//^^^^^^ storage.modifier.java
// ^ - invalid
// ^^^^^^^^ invalid.illegal.unexpected-keyword.java
// ^^^^^^^^ storage.modifier.java
// ^ - invalid
// ^^^^^^^^^ invalid.illegal.unexpected-keyword.java
// ^ - invalid
Expand Down

0 comments on commit 053a2ce

Please sign in to comment.