diff options
| author | Georg Brandl <georg@python.org> | 2010-01-02 23:17:05 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-01-02 23:17:05 +0100 |
| commit | ecabbecf6a3bde19b8bf5964248522652ba2eb5f (patch) | |
| tree | 6f29b50ef946a64c63b564e95d648161db6a0ae8 /pygments/lexers/compiled.py | |
| parent | 38dbb5576f8a570cf5743036a1860a2b01e1a7f3 (diff) | |
| download | pygments-git-1.2.2.tar.gz | |
Allow newlines in string patterns.1.2.2
Diffstat (limited to 'pygments/lexers/compiled.py')
| -rw-r--r-- | pygments/lexers/compiled.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 65de0d32..e382a1b3 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -1296,8 +1296,8 @@ class FortranLexer(RegexLexer): ], 'strings': [ - (r'"(\\\\|\\[0-7]+|\\.|[^"\\])*"', String.Double), - (r"'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single), + (r'(?s)"(\\\\|\\[0-7]+|\\.|[^"\\])*"', String.Double), + (r"(?s)'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single), ], 'nums': [ |
