Skip to content

Commit

Permalink
Continues testing
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Feb 12, 2016
1 parent ca318cf commit 179ff47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Now that you've got Coconut installed, the obvious first thing to do is to play
coconut
```
and you should see something like
```coconut
```pycon
Coconut Interpreter:
(type "exit()" or press Ctrl-D to end)
>>>
Expand Down
4 changes: 2 additions & 2 deletions coconut/highlighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ 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 = ["coc", "coconut", "force_coc", "force_coconut", "coconutcon", "force_coconutcon"]
filenames = ["*"+code_ext]

tokens = Python3Lexer.tokens.copy()
tokens["keywords"] = [
(words(keywords + reserved_vars, suffix=r"\b"), Keyword),
(words(const_vars, suffix=r"\b"), Keyword.Constant)
]
tokens["backtick"] = [("`.*?`", String.Backtick)]
tokens["backtick"] = [(r"`.*?`", String.Backtick)]
tokens["name"] = tokens["name"] + [(r"[$\\]", Operator)]

def __init__(self, stripnl=False, stripall=False, ensurenl=True, tabsize=tablen, encoding=encoding):
Expand Down

0 comments on commit 179ff47

Please sign in to comment.