1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-15 13:33:12 +02:00

5 Commits

Author SHA1 Message Date
Cameron Moore
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
nyaayaya
9b3cf51c84 zig: Detect visual separators in integer literals
Zig docs: "// underscores may be placed between two digits as a visual
separator"
2020-10-30 22:50:45 +11:00
Alec Thomas
05ac2f71fd Revert "Zig: Detect visual separators in integer literals"
This reverts commit d2a1cc462b640250dac9280a009269e8a8bbf917.
2020-10-29 19:23:01 +11:00
nyaayaya
d2a1cc462b Zig: Detect visual separators in integer literals
Zig docs: "// underscores may be placed between two digits as a visual
separator"
2020-10-29 14:01:03 +11:00
Robin Thrift
bd463054be Add Zig lexer
Add a lexer for the Zig language (https://ziglang.org) based on the
pygments Zig lexer.
2020-05-16 21:36:07 +10:00