Commits

Gaurav Jain committed 47516b0

Added handling of escaped single quotes in Puppet files

  • Participants
  • Parent commits 33931e7

Comments (0)

Files changed (2)

pygments/lexers/other.py

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

tests/examplefiles/example.pp

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