summaryrefslogtreecommitdiff
path: root/pygments/lexers/other.py
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-04-15 22:17:27 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-04-15 22:17:27 -0400
commit524b58ffc841c5ce9de12a62a1a6082fc99eebf3 (patch)
treeb36e3a75a982017c24ddffccbed935602688dad8 /pygments/lexers/other.py
parent84b7c8aca975566dde86fc90a23d49353e534265 (diff)
downloadpygments-524b58ffc841c5ce9de12a62a1a6082fc99eebf3.tar.gz
Added handling of escaped single quotes in Puppet files
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r--pygments/lexers/other.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index c308c884..227352d9 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -3391,7 +3391,7 @@ class PuppetLexer(RegexLexer):
'strings': [
(r'"([^"])*"', String),
- (r'\'([^\'])*\'', String),
+ (r"'(\\'|[^'])*'", String),
],
}