diff --git a/Lua/Lua.sublime-syntax b/Lua/Lua.sublime-syntax index 2f0e019832..6cf1e1490d 100644 --- a/Lua/Lua.sublime-syntax +++ b/Lua/Lua.sublime-syntax @@ -211,7 +211,7 @@ contexts: scope: invalid.illegal.unexpected-end.lua - match: (?=\S) - push: expression-stmt + push: expression-list-stmt block-contents: - meta_scope: meta.block.lua diff --git a/Lua/tests/syntax_test_lua.lua b/Lua/tests/syntax_test_lua.lua index 74ce6562fd..d763f51ada 100644 --- a/Lua/tests/syntax_test_lua.lua +++ b/Lua/tests/syntax_test_lua.lua @@ -739,16 +739,22 @@ -- ^ meta.number.integer.decimal constant.numeric.value -- ^ punctuation.terminator.statement - local a = b = c d = e + local a = b = c -- ^^^^^ storage.modifier -- ^ variable.other -- ^ keyword.operator.assignment -- ^ variable.other -- ^ invalid.illegal.invalid-operator -- ^ variable.other --- ^ variable.other --- ^ keyword.operator.assignment --- ^ variable.other + + d, e = f, g +-- ^ variable.other +-- ^ punctuation.separator.comma +-- ^ variable.other +-- ^ keyword.operator.assignment +-- ^ variable.other +-- ^ punctuation.separator.comma +-- ^ variable.other local x , y < const > = 1, 2; -- ^^^^^ storage.modifier.lua