File tree Expand file tree Collapse file tree 7 files changed +25
-1
lines changed Expand file tree Collapse file tree 7 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,10 @@ PARSER_NESTING_LONG_MARK =
315315' Nesting of `[[...]]` is not allowed in Lua 5.1 .'
316316PARSER_LOCAL_LIMIT =
317317' Only 200 active local variables and upvalues can be existed at the same time.'
318+ PARSER_VARIABLE_NOT_DECLARED =
319+ ' Variable `{name}` is not declared. (Use `global *` to allow undefined variables, or declare it with `global {name}`)'
320+ PARSER_ASSIGN_CONST_GLOBAL =
321+ ' Cannot assign to const global variable `{name}`.'
318322PARSER_LUADOC_MISS_CLASS_NAME =
319323' <class name> expected.'
320324PARSER_LUADOC_MISS_EXTENDS_SYMBOL =
Original file line number Diff line number Diff line change @@ -309,6 +309,10 @@ PARSER_NESTING_LONG_MARK =
309309' La anidación de `[[...]]` no está permitida en Lua 5.1 .'
310310PARSER_LOCAL_LIMIT =
311311' Solo 200 variables locales activas y valores anteriores pueden existir al mismo tiempo.'
312+ PARSER_VARIABLE_NOT_DECLARED =
313+ ' Variable `{name}` no está declarada. (Use `global *` para permitir variables indefinidas, o declárela con `global {name}`)'
314+ PARSER_ASSIGN_CONST_GLOBAL =
315+ ' No se puede asignar a la variable global constante `{name}`.'
312316PARSER_LUADOC_MISS_CLASS_NAME =
313317' Se esperaba <class name>.'
314318PARSER_LUADOC_MISS_EXTENDS_SYMBOL =
Original file line number Diff line number Diff line change @@ -311,6 +311,10 @@ PARSER_NESTING_LONG_MARK =
311311' Lua 5.1 ではネストされた `[[...]]` は使用できません。'
312312PARSER_LOCAL_LIMIT =
313313' 同時に存在できるローカル変数とアップバリューの数は200個までです。'
314+ PARSER_VARIABLE_NOT_DECLARED =
315+ ' 変数 `{name}` は宣言されていません。(`global *` を使用して未定義の変数を許可するか、`global {name}` で宣言してください)'
316+ PARSER_ASSIGN_CONST_GLOBAL =
317+ ' 定数グローバル変数 `{name}` に代入できません。'
314318PARSER_LUADOC_MISS_CLASS_NAME =
315319' クラス名が不足しています。'
316320PARSER_LUADOC_MISS_EXTENDS_SYMBOL =
Original file line number Diff line number Diff line change @@ -311,6 +311,10 @@ PARSER_NESTING_LONG_MARK = -- TODO: need translate!
311311' Nesting of `[[...]]` is not allowed in Lua 5.1 .'
312312PARSER_LOCAL_LIMIT = -- TODO: need translate!
313313' Only 200 active local variables and upvalues can be existed at the same time.'
314+ PARSER_VARIABLE_NOT_DECLARED =
315+ ' Variável `{name}` não foi declarada. (Use `global *` para permitir variáveis indefinidas, ou declare com `global {name}`)'
316+ PARSER_ASSIGN_CONST_GLOBAL =
317+ ' Não é possível atribuir à variável global constante `{name}`.'
314318PARSER_LUADOC_MISS_CLASS_NAME =
315319' Esperado <class name>.'
316320PARSER_LUADOC_MISS_EXTENDS_SYMBOL =
Original file line number Diff line number Diff line change @@ -315,6 +315,10 @@ PARSER_NESTING_LONG_MARK =
315315' Lua 5.1 中不允许使用嵌套的 `[[...]]` 。'
316316PARSER_LOCAL_LIMIT =
317317' 只能同时存在200个活跃的局部变量与上值。'
318+ PARSER_VARIABLE_NOT_DECLARED =
319+ ' 变量 `{name}` 未声明。(使用 `global *` 允许未定义变量,或使用 `global {name}` 声明)'
320+ PARSER_ASSIGN_CONST_GLOBAL =
321+ ' 无法对常量全局变量 `{name}` 赋值。'
318322PARSER_LUADOC_MISS_CLASS_NAME =
319323' 缺少类名称。'
320324PARSER_LUADOC_MISS_EXTENDS_SYMBOL =
Original file line number Diff line number Diff line change @@ -311,6 +311,10 @@ PARSER_NESTING_LONG_MARK =
311311' Lua 5.1 不允許使用巢狀的 `[[...]]` 。'
312312PARSER_LOCAL_LIMIT =
313313' 只能同時存在200個活躍的區域變數與上值。'
314+ PARSER_VARIABLE_NOT_DECLARED =
315+ ' 變數 `{name}` 未宣告。(使用 `global *` 允許未定義變數,或使用 `global {name}` 宣告)'
316+ PARSER_ASSIGN_CONST_GLOBAL =
317+ ' 無法對常數全域變數 `{name}` 賦值。'
314318PARSER_LUADOC_MISS_CLASS_NAME =
315319' 缺少類別名稱。'
316320PARSER_LUADOC_MISS_EXTENDS_SYMBOL =
Original file line number Diff line number Diff line change 755755
756756--- @param obj table
757757local function createGlobal (obj , attrs )
758- obj .type = ' global '
758+ obj .type = ' globaldeclare '
759759
760760 if attrs then
761761 obj .attrs = attrs
You can’t perform that action at this time.
0 commit comments