Skip to content

Commit

Permalink
Further attempts to fix syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Feb 12, 2016
1 parent 7e50216 commit 17245f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions coconut/highlighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def add_filter(self, *args, **kwargs):
class coclexer(Python3Lexer):
"""Coconut syntax highlighter."""
name = "coconut"
aliases = ["coc", "coconut", "force_coc", "force_coconut", "coconutcon", "force_coconutcon"]
aliases = ["coconut", "force_coconut", "coc", "force_coc", "coconutcon", "force_coconutcon"]
filenames = ["*"+code_ext]

tokens = Python3Lexer.tokens.copy()
Expand All @@ -70,7 +70,3 @@ class coclexer(Python3Lexer):
def __init__(self, stripnl=False, stripall=False, ensurenl=True, tabsize=tablen, encoding=encoding):
"""Initialize the Python syntax highlighter."""
super(coclexer, self).__init__(stripnl=stripnl, stripall=stripall, ensurenl=ensurenl, tabsize=tabsize, encoding=encoding)
def add_filter(self, *args, **kwargs):
"""Disables the raiseonerror filter."""
if len(args) >= 1 and args[0] != "raiseonerror":
super(coclexer, self).add_filter(*args, **kwargs)
2 changes: 1 addition & 1 deletion coconut/icoconut/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class kernel(Kernel):
implementation_version = VERSION
language = "coconut"
language_version = VERSION
banner = "Coconut:"
banner = "Coconut"
language_info = {
"name": "coconut",
"mimetype": "text/x-python",
Expand Down

0 comments on commit 17245f7

Please sign in to comment.