Commits

Georg Brandl  committed 7d14e46 Merge

Merged in jaingaurav2/pygments-main-954 (pull request #323)

Added handling of escaped single quotes in Puppet files

  • Participants
  • Parent commits 88959ad, 47516b0

Comments (0)

Files changed (2)

File pygments/lexers/other.py

 
         'strings': [
             (r'"([^"])*"', String),
-            (r'\'([^\'])*\'', String),
+            (r"'(\\'|[^'])*'", String),
         ],
 
     }

File tests/examplefiles/example.pp

+exec { 'grep':
+    command => 'grep "\'" -rI *',
+    path    => '/bin:/usr/bin',
+}
+
+node default {
+    notify {"Hello World":;}
+}