Skip to content

Commit

Permalink
Attempts to fix backslash highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Feb 12, 2016
1 parent f116f28 commit e1a3748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coconut/highlighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class coclexer(Python3Lexer):
(words(const_vars, suffix=r"\b"), Keyword.Constant)
]
tokens["backtick"] = [(r"`.*?`", String.Backtick)]
tokens["name"] = tokens["name"] + [(r"[$\\]", Operator)]
tokens["name"] = tokens["name"] + [(r"[$]", Operator)]

def __init__(self, stripnl=False, stripall=False, ensurenl=True, tabsize=tablen, encoding=encoding):
"""Initialize the Python syntax highlighter."""
Expand Down

0 comments on commit e1a3748

Please sign in to comment.