Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Lex Type, Identifiers in additional contexts #125

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sifton
Copy link

@sifton sifton commented Dec 4, 2017

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.

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