Commits

Charles McLaughlin  committed 31f30a3 Draft

kinda hackish work around for ['element']

  • Participants
  • Parent commits 060bab8

Comments (0)

Files changed (1)

File pygments/lexers/puppet.py

 
         'names': [
             ('[a-zA-Z_][a-zA-Z0-9_]*', Name.Attribute),
-
-            # FIXME $variable[array] doesn't look right
+            (r'(\$\S+)(\[)(\S+)(\])', bygroups(Name.Variable, Punctuation,
+                                               String, Punctuation)),
             (r'\$\S+', Name.Variable),
         ],