summaryrefslogtreecommitdiff
path: root/tests/test_highlighting.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_highlighting.py')
-rw-r--r--tests/test_highlighting.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_highlighting.py b/tests/test_highlighting.py
index c3ea03873..02b928916 100644
--- a/tests/test_highlighting.py
+++ b/tests/test_highlighting.py
@@ -62,6 +62,12 @@ def test_detect_interactive():
assert ret.startswith("<div class=\"highlight\">")
+def test_lexer_options():
+ bridge = PygmentsBridge('html')
+ ret = bridge.highlight_block('//comment', 'php', opts={'startinline' : True})
+ assert '<span class="c1">//comment</span>' in ret
+
+
def test_set_formatter():
PygmentsBridge.html_formatter = MyFormatter
try: