Skip to content

Commit fb967d7

Browse files
committed
add error and type into special
1 parent 738f341 commit fb967d7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

script/config/template.lua

+2
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ local template = {
192192
'pcall',
193193
'xpcall',
194194
'assert',
195+
'error',
196+
'type',
195197
}
196198
),
197199
['Lua.runtime.meta'] = Type.String >> '${version} ${language} ${encoding}',

script/parser/newparser.lua

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ local Specials = {
118118
['pairs'] = true,
119119
['ipairs'] = true,
120120
['assert'] = true,
121+
['error'] = true,
122+
['type'] = true,
121123
}
122124

123125
local UnarySymbol = {

0 commit comments

Comments
 (0)