New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tokenize `@` #113

merged 3 commits into from Oct 18, 2017


None yet
2 participants

chbk commented Oct 18, 2017

  • Tokenizes @ as punctuation.definition.annotation, as per #112

  • Prevents tokenization of @interface in class definitions. It is used to define an annotation, not a regular interface.

    In the examples below, interface is now meta.declaration.annotation > storage.modifier:

    @interface Author {
      String name();
    public @interface Author {
      String name();

    In the examples below, interface is still meta.class > meta.class.identifier > storage.modifier:

    interface Author {
      String name();
    public interface Author {
      String name();
  • Adds specs

Show outdated Hide outdated grammars/java.cson
Show outdated Hide outdated grammars/java.cson

@50Wliu 50Wliu merged commit e929fee into atom:master Oct 18, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment