source: rtems-tools/doc/asciidoc/filters/code/code-filter-test.txt @ f91e023

4.104.115
Last change on this file since f91e023 was f91e023, checked in by Chris Johns <chrisj@…>, on 02/17/14 at 07:04:46

Add the documentation.

  • Property mode set to 100644
File size: 393 bytes
Line 
1Code Filter Test
2================
3
4[python]
5code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6''' A multi-line
7    comment.'''
8def sub_word(mo):
9        ''' Single line comment.'''
10        word = mo.group('word') # Inline comment
11        if word in keywords[language]:
12                return quote + word + quote
13        else:
14                return word
15code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note: See TracBrowser for help on using the repository browser.