Fix for math expression parsing
This commit is contained in:
parent
bf24824660
commit
35a5539185
@ -153,7 +153,7 @@ Tree("Block", {
|
|||||||
return nomsu
|
return nomsu
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
local math_expression = re.compile([[ "%" (" " [*/^+-] " %")+ ]])
|
local math_expression = re.compile([[ "%" (" " [*/^+-] " %")+ !. ]])
|
||||||
Tree("Action", {
|
Tree("Action", {
|
||||||
as_lua = function(self, nomsu)
|
as_lua = function(self, nomsu)
|
||||||
local stub = self:get_stub()
|
local stub = self:get_stub()
|
||||||
|
@ -103,7 +103,7 @@ Tree "Block",
|
|||||||
nomsu\append "\n"
|
nomsu\append "\n"
|
||||||
return nomsu
|
return nomsu
|
||||||
|
|
||||||
math_expression = re.compile [[ "%" (" " [*/^+-] " %")+ ]]
|
math_expression = re.compile [[ "%" (" " [*/^+-] " %")+ !. ]]
|
||||||
Tree "Action",
|
Tree "Action",
|
||||||
as_lua: (nomsu)=>
|
as_lua: (nomsu)=>
|
||||||
stub = @get_stub!
|
stub = @get_stub!
|
||||||
|
Loading…
Reference in New Issue
Block a user