diff --git a/autotests/folding/highlight.lua.fold b/autotests/folding/highlight.lua.fold --- a/autotests/folding/highlight.lua.fold +++ b/autotests/folding/highlight.lua.fold @@ -158,3 +158,14 @@ --! \brief gfind is deprecated string.gfind('s') string.gmatch('f') + +function foo() + if x then + function() end + bar=function() + if y then + if z then end + end + end + end +end diff --git a/autotests/html/highlight.lua.html b/autotests/html/highlight.lua.html --- a/autotests/html/highlight.lua.html +++ b/autotests/html/highlight.lua.html @@ -164,4 +164,15 @@ --! \brief gfind is deprecated string.gfind('s') string.gmatch('f') + +function foo() + if x then + function() end + bar=function() + if y then + if z then end + end + end + end +end diff --git a/autotests/input/highlight.lua b/autotests/input/highlight.lua --- a/autotests/input/highlight.lua +++ b/autotests/input/highlight.lua @@ -158,3 +158,14 @@ --! \brief gfind is deprecated string.gfind('s') string.gmatch('f') + +function foo() + if x then + function() end + bar=function() + if y then + if z then end + end + end + end +end diff --git a/autotests/reference/highlight.lua.ref b/autotests/reference/highlight.lua.ref --- a/autotests/reference/highlight.lua.ref +++ b/autotests/reference/highlight.lua.ref @@ -158,3 +158,14 @@ --! \brief gfind is deprecated
string.gfind('s')
string.gmatch('f')
+
+function foo()
+ if x then
+ function() end
+ bar=function()
+ if y then
+ if z then end
+ end
+ end
+ end
+end
diff --git a/data/syntax/lua.xml b/data/syntax/lua.xml --- a/data/syntax/lua.xml +++ b/data/syntax/lua.xml @@ -48,7 +48,7 @@ - NOTE, FIXME, TODO alerts added on comments - improved highlighting --> - + and @@ -79,6 +79,22 @@ while + + do + if + repeat + + + + else + elseif + + + + end + until + + _PROMPT _PROMPT2 @@ -462,11 +478,7 @@ - - - - - + @@ -486,6 +498,12 @@ + + + + + +