4.104.115
Line | |
---|
1 | Source Hightlight Filter Test |
---|
2 | ============================= |
---|
3 | |
---|
4 | Details of the filter can be found in |
---|
5 | `./doc/source-highlight-filter.txt`. |
---|
6 | |
---|
7 | [source,python] |
---|
8 | --------------------------------------------------------------------- |
---|
9 | ''' A multi-line |
---|
10 | comment.''' |
---|
11 | def 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.