CS-Notes/docs/_style/prism-master/tests/languages/python/issue1355.test

24 lines
523 B
Java
Raw Normal View History

2018-12-19 14:09:39 +08:00
print('""#')
print('"trigger="#T'+str(3))
----------------------------------------------------
[
["keyword", "print"],
["punctuation", "("],
["string", "'\"\"#'"],
["punctuation", ")"],
["keyword", "print"],
["punctuation", "("],
["string", "'\"trigger=\"#T'"],
["operator", "+"],
["builtin", "str"],
["punctuation", "("],
["number", "3"],
["punctuation", ")"],
["punctuation", ")"]
]
----------------------------------------------------
Checks for comment-like substrings. See #1355