Skip to content

Commit

Permalink
Tests removing certain syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Feb 12, 2016
1 parent 2b0254b commit b03d80a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ The requirement that Coconut keywords be backslash-escaped to make them variable
##### Example

###### Coconut
```coconut
```
\data = 5
print(\data)
```
Expand Down Expand Up @@ -1096,7 +1096,7 @@ Coconut supports the ability to pass arbitrary code through the compiler without
##### Example

###### Coconut
```coconut
```
\\cdef f(x):
return x |> g
```
Expand Down
4 changes: 0 additions & 4 deletions coconut/highlighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit b03d80a

Please sign in to comment.