summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-08-19 11:36:11 +0200
committerGeorg Brandl <georg@python.org>2012-08-19 11:36:11 +0200
commitcfeb9b85078d8b3a639c7c6bd2c632e568a794d7 (patch)
treea4916e8b255844058199e5973df6c0bceb78465b
parent772f6f9766db93f2111472384cbb48ef227a3272 (diff)
downloadpygments-cfeb9b85078d8b3a639c7c6bd2c632e568a794d7.tar.gz
Closes #763: bash: support here-strings.
-rw-r--r--pygments/lexers/shell.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/shell.py b/pygments/lexers/shell.py
index e84b43e0..52df5f00 100644
--- a/pygments/lexers/shell.py
+++ b/pygments/lexers/shell.py
@@ -60,6 +60,7 @@ class BashLexer(RegexLexer):
(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),
],