mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 09:59:29 +00:00
Ignore comments and long string in preprocessor
This commit is contained in:
parent
7405a6f949
commit
30a10d6ed9
4 changed files with 218 additions and 173 deletions
|
|
@ -95,6 +95,24 @@ test("preprocessor options", [[
|
|||
return true
|
||||
]], true, { foo = "sky" })
|
||||
|
||||
test("preprocessor long comment", [[
|
||||
--[[
|
||||
#error("preprocessor should ignore long comments")
|
||||
]].."]]"..[[
|
||||
return true
|
||||
]], true)
|
||||
|
||||
test("preprocessor long comment in long string", [[
|
||||
a=]].."[["..[[
|
||||
--[[
|
||||
#error("preprocessor should ignore long strings")
|
||||
]].."]]"..[[
|
||||
return a
|
||||
]], [[
|
||||
--[[
|
||||
#error("preprocessor should ignore long strings")
|
||||
]])
|
||||
|
||||
----------------------
|
||||
-- SYNTAX ADDITIONS --
|
||||
----------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue