ede/doc/asciidoc/filters/source-highlight-filter-test.txt

20 lines
516 B
Plaintext
Raw Normal View History

Source Hightlight Filter Test
=============================
Details of the filter can be found in
`./doc/source-highlight-filter.txt`.
[python]
source~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
''' A multi-line
comment.'''
def sub_word(mo):
''' Single line comment.'''
word = mo.group('word') # Inline comment
if word in keywords[language]:
return quote + word + quote
else:
return word
source~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~