5712:f0d08bdeacf4 | 5713:6762afd9f963 |
---|---|
3 pygments.lexers.resource | 3 pygments.lexers.resource |
4 ~~~~~~~~~~~~~~~~~~~~~~~~ | 4 ~~~~~~~~~~~~~~~~~~~~~~~~ |
5 | 5 |
6 Lexer for resource definition files. | 6 Lexer for resource definition files. |
7 | 7 |
8 :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. | 8 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. |
9 :license: BSD, see LICENSE for details. | 9 :license: BSD, see LICENSE for details. |
10 """ | 10 """ |
11 | 11 |
12 import re | 12 import re |
13 | 13 |
79 (r'[^{}]+', String) | 79 (r'[^{}]+', String) |
80 ] | 80 ] |
81 } | 81 } |
82 | 82 |
83 def analyse_text(text): | 83 def analyse_text(text): |
84 return text.startswith('root:table') | 84 if text.startswith('root:table'): |
85 return 1.0 |