summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r--sphinx/highlighting.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py
index 2423502f3..a46f0c449 100644
--- a/sphinx/highlighting.py
+++ b/sphinx/highlighting.py
@@ -104,7 +104,7 @@ class PygmentsBridge(object):
# maybe Python -- try parsing it
src = source + '\n'
- # Replace "..." by a special mark, which is also a valid python expression
+ # Replace "..." by a mark which is also a valid python expression
# (Note, the highlighter gets the original source, this is only done
# to allow "..." in code and still highlight it as Python code.)
mark = "__highlighting__ellipsis__"
@@ -133,7 +133,8 @@ class PygmentsBridge(object):
fmter = (self.dest == 'html' and self.hfmter or self.lfmter)[bool(linenos)]
return highlight(source, lexer, fmter)
except ErrorToken:
- # this is most probably not the selected language, so let it pass unhighlighted
+ # this is most probably not the selected language,
+ # so let it pass unhighlighted
return unhighlighted()
def get_stylesheet(self):