summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--pygments/lexers/agile.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index cc815811..ebd9501a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -11,6 +11,8 @@ Version 1.1
- Fix a few problems in Matlab lexer (#378).
+- Support multiline strings in Lua lexer.
+
Version 1.0
-----------
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 047e76b0..bd66f494 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -1017,6 +1017,7 @@ class LuaLexer(RegexLexer):
(r'\n', Text),
(r'[^\S\n]', Text),
+ (r'(?s)\[(=*)\[.*?\]\1\]', String.Multiline),
(r'[\[\]\{\}\(\)\.,:;]', Punctuation),
(r'(==|~=|<=|>=|\.\.|\.\.\.|[=+\-*/%^<>#])', Operator),