diff options
Diffstat (limited to 'examples/typedlua/tlerror.lua')
-rw-r--r-- | examples/typedlua/tlerror.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/typedlua/tlerror.lua b/examples/typedlua/tlerror.lua index fe3a72e..6881b6b 100644 --- a/examples/typedlua/tlerror.lua +++ b/examples/typedlua/tlerror.lua | |||
@@ -8,6 +8,7 @@ new_error("Number", "malformed <number>") | |||
8 | new_error("String", "malformed <string>") | 8 | new_error("String", "malformed <string>") |
9 | new_error("LongString", "unfinished long string") | 9 | new_error("LongString", "unfinished long string") |
10 | new_error("LongComment", "unfinished long comment") | 10 | new_error("LongComment", "unfinished long comment") |
11 | new_error("MissingOP", "missing '('") | ||
11 | new_error("MissingCP", "missing ')'") | 12 | new_error("MissingCP", "missing ')'") |
12 | new_error("MissingCC", "missing '}'") | 13 | new_error("MissingCC", "missing '}'") |
13 | new_error("MissingCB", "missing ']'") | 14 | new_error("MissingCB", "missing ']'") |
@@ -35,6 +36,8 @@ new_error("MethodCall", "expecting '(' for method call") | |||
35 | new_error("Label1", "expecting <name> after '::'") | 36 | new_error("Label1", "expecting <name> after '::'") |
36 | new_error("Label2", "expecting '::' to close label declaration") | 37 | new_error("Label2", "expecting '::' to close label declaration") |
37 | new_error("LocalAssign", "expecting expression list after '='") | 38 | new_error("LocalAssign", "expecting expression list after '='") |
39 | new_error("ForGen", "expecting 'in'") | ||
40 | new_error("LocalFunc", "expecting <name> in local function declaration") | ||
38 | 41 | ||
39 | local labels = {} | 42 | local labels = {} |
40 | for k, v in ipairs(errors) do | 43 | for k, v in ipairs(errors) do |