summaryrefslogtreecommitdiffstats
path: root/litecli/lexer.py
blob: 678eb3fcc97d5cbc6c68a71a701a9bfb26bcbe7d (plain)
1
2
3
4
5
6
7
8
9
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]}