diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-15 20:40:34 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-15 20:40:34 -0400 |
commit | f8a5949ecb6e4865aad9c2511d14b5a9ee87bdc6 (patch) | |
tree | 3ab528a46d6e9194e11560b2fee91ec64d6a0907 /pygments/lexers/text.py | |
parent | 860bff820e92283aaee4bac1e09a7becfc9f61e8 (diff) | |
download | pygments-f8a5949ecb6e4865aad9c2511d14b5a9ee87bdc6.tar.gz |
Instead of negating character class, flip case of builtin class
Diffstat (limited to 'pygments/lexers/text.py')
-rw-r--r-- | pygments/lexers/text.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py index d855ec79..82c49239 100644 --- a/pygments/lexers/text.py +++ b/pygments/lexers/text.py @@ -776,7 +776,7 @@ class RstLexer(RegexLexer): (r'^( *)(:.*?:)([ \t]+)(.*?)$', bygroups(Text, Name.Class, Text, Name.Function)), # Definition list - (r'^([^\s].*(?<!::)\n)((?:(?: +.*)\n)+)', + (r'^(\S.*(?<!::)\n)((?:(?: +.*)\n)+)', bygroups(using(this, state='inline'), using(this, state='inline'))), # Code blocks (r'(::)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\3.*|)\n)+)', |