summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-03-08 07:49:21 +0100
committerGeorg Brandl <georg@python.org>2015-03-08 07:49:21 +0100
commit76d3e64ef6e7fecfe0f7c1a264c8d89eea157525 (patch)
tree29be509252524a4a80f882bcfcb1c8452d61ee4b /pygments
parente25bc0c7427ae1d13f8625a37aa81ee6e8f29a2f (diff)
downloadpygments-76d3e64ef6e7fecfe0f7c1a264c8d89eea157525.tar.gz
Closes #1047: allow newlines in # comments in AutoIt.
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/automation.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/automation.py b/pygments/lexers/automation.py
index c8e6b0b8..2ebc4d24 100644
--- a/pygments/lexers/automation.py
+++ b/pygments/lexers/automation.py
@@ -316,7 +316,8 @@ class AutoItLexer(RegexLexer):
tokens = {
'root': [
(r';.*\n', Comment.Single),
- (r'(#comments-start|#cs).*?(#comments-end|#ce)', Comment.Multiline),
+ (r'(#comments-start|#cs)(.|\n)*?(#comments-end|#ce)',
+ Comment.Multiline),
(r'[\[\]{}(),;]', Punctuation),
(r'(and|or|not)\b', Operator.Word),
(r'[$|@][a-zA-Z_]\w*', Name.Variable),