source:
rtems-tools/doc/asciidoc/filters/code/code-filter-test.txt
@
f91e023
Last change on this file since f91e023 was f91e023, checked in by Chris Johns <chrisj@…>, on 02/17/14 at 07:04:46 | |
---|---|
|
|
File size: 393 bytes |
Line | |
---|---|
1 | Code Filter Test |
2 | ================ |
3 | |
4 | [python] |
5 | code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
6 | ''' A multi-line |
7 | comment.''' |
8 | def 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 |
15 | code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Note: See TracBrowser
for help on using the repository browser.