summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-02 22:22:38 +0100
committerGeorg Brandl <georg@python.org>2010-01-02 22:22:38 +0100
commitd9add5a91286658222b45ecda55bcc34b53f1625 (patch)
treecad9f534ab2729f9b032b0f66e1d6a6990ca47f9 /pygments/lexers
parent8f4be9fbf50638a43d7d5b05bce38c7335b49b15 (diff)
downloadpygments-d9add5a91286658222b45ecda55bcc34b53f1625.tar.gz
Fix more potential instances of #462.
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/agile.py4
-rw-r--r--pygments/lexers/compiled.py4
-rw-r--r--pygments/lexers/functional.py2
-rw-r--r--pygments/lexers/other.py6
4 files changed, 8 insertions, 8 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 01daa990..7a5d5e3d 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -1312,12 +1312,12 @@ class TclLexer(RegexLexer):
],
'string': [
(r'\[', String.Double, 'string-square'),
- (r'(\\\\|\\[0-7]+|\\.|[^"])', String.Double),
+ (r'(\\\\|\\[0-7]+|\\.|[^"\\])', String.Double),
(r'"', String.Double, '#pop')
],
'string-square': [
(r'\[', String.Double, 'string-square'),
- (r'(\\\\|\\[0-7]+|\\.|[^\]])', String.Double),
+ (r'(\\\\|\\[0-7]+|\\.|[^\]\\])', String.Double),
(r'\]', String.Double, '#pop')
],
'brace': [
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 84ffd2b1..65de0d32 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'"(\\\\|\\[0-7]+|\\.|[^"\\])*"', String.Double),
+ (r"'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single),
],
'nums': [
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py
index 5c035bb9..8431ba33 100644
--- a/pygments/lexers/functional.py
+++ b/pygments/lexers/functional.py
@@ -245,7 +245,7 @@ class CommonLispLexer(RegexLexer):
(r'#\d*Y.*$', Comment.Special),
# strings and characters
- (r'"(\\.|[^"])*"', String),
+ (r'"(\\.|[^"\\])*"', String),
# quoting
(r":" + symbol, String.Symbol),
(r"'" + symbol, String.Symbol),
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index 05a6c6cb..71592673 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -745,8 +745,8 @@ class TcshLexer(RegexLexer):
(r'<<\s*(\'?)\\?(\w+)[\w\W]+?\2', String),
],
'data': [
- (r'"(\\\\|\\[0-7]+|\\.|[^"])*"', String.Double),
- (r"'(\\\\|\\[0-7]+|\\.|[^'])*'", String.Single),
+ (r'"(\\\\|\\[0-7]+|\\.|[^"\\])*"', String.Double),
+ (r"'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single),
(r'\s+', Text),
(r'[^=\s\n\[\]{}()$"\'`\\]+', Text),
(r'\d+(?= |\Z)', Number),
@@ -1164,7 +1164,7 @@ class PovrayLexer(RegexLexer):
'root': [
(r'/\*[\w\W]*?\*/', Comment.Multiline),
(r'//.*\n', Comment.Single),
- (r'"(?:\\.|[^"])+"', String.Double),
+ (r'"(?:\\.|[^"\\])+"', String.Double),
(r'#(debug|default|else|end|error|fclose|fopen|if|ifdef|ifndef|'
r'include|range|read|render|statistics|switch|undef|version|'
r'warning|while|write|define|macro|local|declare)',