1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-07-07 00:46:37 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
59126c5b32 Add NewLazyLexer to defer rules definitions and reduce init costs (#449)
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
af4cf6a8b5 Fix capitalisation mistake in lexer variable 2019-02-03 09:07:29 +11:00
15bc6832dc Remove comment and CPP name 2019-02-03 09:07:29 +11:00
c53abb037b Add Arduino lexer 2019-02-03 09:07:29 +11:00