Skip to content

Commit a0588f5

Browse files
committed
lack descriptions
1 parent e7a4cc6 commit a0588f5

File tree

8 files changed

+32
-1
lines changed

8 files changed

+32
-1
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"type": "lua",
2727
"request": "attach",
2828
"stopOnEntry": false,
29-
"address": "127.0.0.1:11413",
29+
"address": "127.0.0.1:11414",
3030
"outputCapture": [
3131
],
3232
"sourceFormat": "string",

locale/en-us/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ PARSER_MISS_EXPONENT =
237237
'Missed digits for the exponent.'
238238
PARSER_MISS_EXP =
239239
'<exp> expected.'
240+
PARSER_MISS_LOOP_MIN =
241+
'Missing start value of the loop.'
242+
PARSER_MISS_LOOP_MAX =
243+
'Missing limit value of the loop.'
240244
PARSER_MISS_FIELD =
241245
'<field> expected.'
242246
PARSER_MISS_METHOD =

locale/es-419/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ PARSER_MISS_EXPONENT =
231231
'Faltan los dígitos para el exponente.'
232232
PARSER_MISS_EXP =
233233
'Se esperaba <exp>.'
234+
PARSER_MISS_LOOP_MIN =
235+
'Falta el valor inicial del bucle.'
236+
PARSER_MISS_LOOP_MAX =
237+
'Falta el valor límite del bucle.'
234238
PARSER_MISS_FIELD =
235239
'Se esperaba <field>.'
236240
PARSER_MISS_METHOD =

locale/ja-jp/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ PARSER_MISS_EXPONENT =
233233
'指数部が不足しています。'
234234
PARSER_MISS_EXP =
235235
'式が不足しています。'
236+
PARSER_MISS_LOOP_MIN =
237+
'ループの開始値が不足しています。'
238+
PARSER_MISS_LOOP_MAX =
239+
'ループの終了値が不足しています。'
236240
PARSER_MISS_FIELD =
237241
'フィールド/プロパティ名が不足しています。'
238242
PARSER_MISS_METHOD =

locale/pt-br/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ PARSER_MISS_EXPONENT =
233233
'Dígitos perdidos para o expoente.'
234234
PARSER_MISS_EXP =
235235
'<exp> esperada.'
236+
PARSER_MISS_LOOP_MIN =
237+
'Falta o valor inicial do loop.'
238+
PARSER_MISS_LOOP_MAX =
239+
'Falta o valor limite do loop.'
236240
PARSER_MISS_FIELD =
237241
'<field> esperado.'
238242
PARSER_MISS_METHOD =

locale/zh-cn/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ PARSER_MISS_EXPONENT =
237237
'缺少指数部分。'
238238
PARSER_MISS_EXP =
239239
'缺少表达式。'
240+
PARSER_MISS_LOOP_MIN =
241+
'缺少循环的起始值。'
242+
PARSER_MISS_LOOP_MAX =
243+
'缺少循环的终止值。'
240244
PARSER_MISS_FIELD =
241245
'缺少字段/属性名。'
242246
PARSER_MISS_METHOD =

locale/zh-tw/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ PARSER_MISS_EXPONENT =
233233
'缺少指數部分。'
234234
PARSER_MISS_EXP =
235235
'缺少表達式。'
236+
PARSER_MISS_LOOP_MIN =
237+
'缺少迴圈的起始值。'
238+
PARSER_MISS_LOOP_MAX =
239+
'缺少迴圈的終止值。'
236240
PARSER_MISS_FIELD =
237241
'缺少欄位/屬性名。'
238242
PARSER_MISS_METHOD =

script/parser/compile.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ local function parseLocalAttrs()
663663
if not attrs then
664664
attrs = {
665665
type = 'localattrs',
666+
start = getPosition(Tokens[Index], 'left'),
667+
finish = getPosition(Tokens[Index], 'right'),
666668
}
667669
end
668670
local attr = {
@@ -718,6 +720,7 @@ local function parseLocalAttrs()
718720
}
719721
}
720722
end
723+
attrs.finish = attr.finish
721724
end
722725
return attrs
723726
end
@@ -3934,6 +3937,8 @@ local function parseFor()
39343937
if State.version == 'Lua 5.5' then
39353938
attrs = {
39363939
type = 'localattrs',
3940+
start = name.start,
3941+
finish = name.finish,
39373942
[1] = {
39383943
type = 'localattr',
39393944
start = name.start,
@@ -4054,6 +4059,8 @@ local function parseFor()
40544059
if State.version == 'Lua 5.5' then
40554060
attrs = {
40564061
type = 'localattrs',
4062+
start = obj.start,
4063+
finish = obj.finish,
40574064
[1] = {
40584065
type = 'localattr',
40594066
start = obj.start,

0 commit comments

Comments
 (0)