ede/doc/asciidoc/filters/source-highlight-filter-test.txt
2008-09-04 10:02:41 +00:00

20 lines
516 B
Plaintext

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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~