From 76d3e64ef6e7fecfe0f7c1a264c8d89eea157525 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 8 Mar 2015 07:49:21 +0100 Subject: Closes #1047: allow newlines in # comments in AutoIt. --- pygments/lexers/automation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pygments') 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), -- cgit v1.2.1