source: rtems-tools/doc/asciidoc/filters/source/source-highlight-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: 527 bytes
Line 
1Source Hightlight Filter Test
2=============================
3
4Details of the filter can be found in
5`./doc/source-highlight-filter.txt`.
6
7[source,python]
8---------------------------------------------------------------------
9''' A multi-line
10    comment.'''
11def sub_word(mo):
12    ''' Single line comment.'''
13    word = mo.group('word')     # Inline comment
14    if word in keywords[language]:
15        return quote + word + quote
16    else:
17        return word
18---------------------------------------------------------------------
19
Note: See TracBrowser for help on using the repository browser.