Open sifton opened 6 years ago
So I've made a couple enhancements that noticeably improve syntax highlighting, particularly for VSCode:
type
Vertex
vertex
PartialEq
partialEq
identifier
attribute
Hope this is cool.
So I've made a couple enhancements that noticeably improve syntax highlighting, particularly for VSCode:
type
rule to match only those lexemes which start with an ASCII capital letter (e.g.Vertex
but notvertex
,PartialEq
but notpartialEq
).identifier
rule which accepts everything thattype
used to accept, but is matched later so as not to conflicttype
s andidentifier
s to be matched inattribute
s, function definitions, and elsewhere (not otherwise specified)Hope this is cool.