Commits

Georg Brandl committed ac48cfe

Closes #763: bash: support here-strings.

  • Participants
  • Parent commits 9e6a3d2

Comments (0)

Files changed (1)

pygments/lexers/shell.py

             (r'\\[\w\W]', String.Escape),
             (r'(\b\w+)(\s*)(=)', bygroups(Name.Variable, Text, Operator)),
             (r'[\[\]{}()=]', Operator),
+            (r'<<<', Operator),  # here-string
             (r'<<-?\s*(\'?)\\?(\w+)[\w\W]+?\2', String),
             (r'&&|\|\|', Operator),
         ],