Open bradleymackey opened 5 months ago
Changes to minified artifacts in /build
, after gzip compression.
Total change +241 B
Changes to minified artifacts in /build
, after gzip compression.
Total change +231 B
Changes to minified artifacts in /build
, after gzip compression.
Total change +241 B
Changes to minified artifacts in /build
, after gzip compression.
Total change +207 B
We can't use negative lookahead until v12 though because it's a breaking change. And I don't have a timetable on that yet.
@joshgoebel This is an adapted version of Javascript's implementation which is already using negative lookahead ( see here). My understanding was that only lookbehind is not allowed currently.
Changes to minified artifacts in /build
, after gzip compression.
Total change +207 B
@joshgoebel Is there a way forward for this PR? If the concern is a language-specific breaking change, the Swift language itself is already using negative lookahead as well, here.
Improve fidelity by highlighting function calls in addition to definitions. This is already done by javascript, for example.
Changes
negativeLookahead
helper tolib/regex
title.function
(e.g.myFunction()
,obj.myFunction()
).title.function
(e.g.#myMacro()
).TRAILING_PAREN_REGEX
obj.if()
). Highlight keyword method calls also.#
and@
respectively. If they don't start with these, they're no longer considered reserved.`myFunc`()
). This feature exists so that reserved words can be used as identifiers.obj.myVariable
) remain unhighlighted for now.Next Steps (for a future PR)
exampleCall { print("action") }
Checklist
CHANGES.md