Skip to content
This repository was archived by the owner on Mar 21, 2023. It is now read-only.

Conversation

@modimore
Copy link

@modimore modimore commented Mar 9, 2017

  • Adds Regex Highlighting
  • Highlights multiple type parameters in a useful way
  • Higlights nested type parameteres in a useful way
  • Introduces a user-defined constant concept (variable with name in all caps)

Though most of the functionality is the same, this commit replaces the
entire haxe grammar file with a different one which uses the grammar
repository more heavily.

modimore added 2 commits March 9, 2017 15:01
* Adds Regex Highlighting
* Highlights multiple type parameters in a useful way
* Higlights nested type parameteres in a useful way
* Introduces a user-defined constant concept (variable with name in all caps)

Though most of the functionality is the same, this commit replaces the
entire haxe grammar file with a different one which uses the grammar
repository more heavily.
Control-flow keywords given the name 'keyword.control.haxe.flow-control.2'
again in order to pass automatic testing.

Field-completions included from repository to pass testing.

Includes expanded to multiple lines to match existing grammar code style.
@modimore modimore closed this Mar 10, 2017
@modimore
Copy link
Author

Getting some errors that are not obviously related to the grammar in testing. Going to look into that and reopen when finished.

Error was caused by two invalid rule references in #field-completions.
@modimore modimore reopened this Mar 10, 2017
@modimore
Copy link
Author

Fixed the lingering error.

I think these changes result in a more readable grammar, but it's also almost a complete replacement of the original file. If you wanted the effects of these changes but in a series of commits with a less crazy diff I could probably do that too.

modimore added 10 commits March 10, 2017 17:45
…etions.

Class names, and CAPS_CONSTANTS now included in field-completions.
New Keyword is matched on its own there too.
…ant.

User-contstants can now be a single uppercase character.
…ions.

Operators are now a higher priority than constants (most notably numbers
with a '+' or '-' in front.

New functions will now highlight within the argument lists of other
functions.
Keywords 'import', 'using', 'as', and 'in' now highlight before
corresponding statements are completed.

The classifier for these keywords in now 'keyword.type.import.haxe'.
Classification is now 'keyword.type.package.haxe'.

Highlights without a supplied package name (which valid syntax for packages).
First includes #field-completions within the parentheses-surrounded form of
itself.

Second ensures that for the first form, the dot beginning the pattern is
followed by one of `[A-Za-z_]`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant