Skip to content

Commit

Permalink
Support annotations on top-level classes
Browse files Browse the repository at this point in the history
In code like the following, the annotation on the top-level class
is not highlighted like an annotation:

```java
@Amazing class Thing {}
```

This change fixes that by including the `#annotation` rules
at the top level.
  • Loading branch information
mkhl authored and infininight committed Aug 10, 2016
1 parent 64294ae commit faffa51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Syntaxes/Java.plist
Expand Up @@ -647,6 +647,10 @@
<key>include</key>
<string>#anonymous-classes-and-new</string>
</dict>
<dict>
<key>include</key>
<string>#annotations</string>
</dict>
<dict>
<key>include</key>
<string>#keywords</string>
Expand Down

0 comments on commit faffa51

Please sign in to comment.