1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-29 21:56:56 +02:00

5 Commits

Author SHA1 Message Date
Siavash Askari Nasr
402a150d3e SCSS fixes and modifications, fixes 2021-06-09 21:44:22 +10:00
Siavash Askari Nasr
373b6b7849 Fix SCSS properties, add missing operator and keywords 2021-04-29 23:01:28 +10:00
Cameron Moore
59126c5b32
Add NewLazyLexer to defer rules definitions and reduce init costs ()
Add NewLazyLexer and MustNewLazyLexer which accept a function that
returns the rules for the lexer.  This allows us to defer the rules
definitions until they're needed.

Lexers in a, g, s, and x packages have been updated to use the new lazy
lexer.
2021-02-08 12:16:49 +11:00
Alec Thomas
2b493e2556 Fix SCSS issue with comments.
Fixes 
2019-08-29 10:01:55 +10:00
Alec Thomas
563aadc53c Moved lexers into alphabetical sub-packages.
This was done to speed up incremental compilation when working on
lexers. That is, modifying a single lexer will no longer require
recompiling all lexers.

This is a (slightly) backwards breaking change in that lexers are no
longer exported directly in the lexers package. The registry API is
"aliased" at the old location.
2018-02-15 21:09:02 +11:00