atom-language-rust icon indicating copy to clipboard operation
atom-language-rust copied to clipboard

Lex Type, Identifiers in additional contexts

Open sifton opened this issue 7 years ago • 0 comments

So I've made a couple enhancements that noticeably improve syntax highlighting, particularly for VSCode:

  • Modified the type rule to match only those lexemes which start with an ASCII capital letter (e.g. Vertex but not vertex, PartialEq but not partialEq).
  • Added an identifier rule which accepts everything that type used to accept, but is matched later so as not to conflict
  • Allow types and identifiers to be matched in attributes, function definitions, and elsewhere (not otherwise specified)

Hope this is cool.

sifton avatar Dec 04 '17 15:12 sifton