Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Features
* Include a MariaDB server and example data in the Docker image.


Bug Fixes
--------
* Tokenize leading `/` and `\` as symbol names for better highlighting.


Documentation
--------
* Add `--pull=always` to documented `docker run` command.
Expand Down
3 changes: 2 additions & 1 deletion mycli/lexer.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from pygments.lexer import inherit
from pygments.lexers.sql import MySqlLexer
from pygments.token import Keyword
from pygments.token import Keyword, Name


class MyCliLexer(MySqlLexer):
"""Extends MySQL lexer to add keywords."""

tokens = {
"root": [
(r'^[/\\]', Name),
(r"\brepair\b", Keyword),
(r"\boffset\b", Keyword),
inherit,
Expand Down
Loading