1
0
Fork 0
litecli/litecli/lexer.py
Daniel Baumann 0912fc1528
Adding upstream version 1.5.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 17:37:21 +01:00

9 lines
281 B
Python

from pygments.lexer import inherit
from pygments.lexers.sql import MySqlLexer
from pygments.token import Keyword
class LiteCliLexer(MySqlLexer):
"""Extends SQLite lexer to add keywords."""
tokens = {"root": [(r"\brepair\b", Keyword), (r"\boffset\b", Keyword), inherit]}