summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/asciidoc/filters/code/code-filter-test.txt
blob: c9e81921b2a960b34ca5123888721b09192bf9a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Code Filter Test
================

[python]
code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
''' 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
code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~