Skip to content

Commit c0333c6

Browse files
committed
Update doc and locale
1 parent 2b21dbe commit c0333c6

File tree

5 files changed

+60
-42
lines changed

5 files changed

+60
-42
lines changed

doc/en-us/config.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ Array<string>
258258
* ``"global-in-nil-env"``
259259
* ``"incomplete-signature-doc"``
260260
* ``"index-in-func-name"``
261+
* ``"inject-field"``
261262
* ``"invisible"``
262263
* ``"jump-local-scope"``
263264
* ``"keyword"``
@@ -505,6 +506,7 @@ object<string, string>
505506
* assign-type-mismatch
506507
* cast-local-type
507508
* cast-type-mismatch
509+
* inject-field
508510
* need-check-nil
509511
* param-type-mismatch
510512
* return-type-mismatch
@@ -633,6 +635,7 @@ object<string, string>
633635
* assign-type-mismatch
634636
* cast-local-type
635637
* cast-type-mismatch
638+
* inject-field
636639
* need-check-nil
637640
* param-type-mismatch
638641
* return-type-mismatch
@@ -826,6 +829,7 @@ object<string, string>
826829
Incomplete @param or @return annotations for functions.
827830
*/
828831
"incomplete-signature-doc": "None",
832+
"inject-field": "Opened",
829833
/*
830834
Enable diagnostics for accesses to fields which are invisible.
831835
*/
@@ -1095,6 +1099,7 @@ object<string, string>
10951099
Incomplete @param or @return annotations for functions.
10961100
*/
10971101
"incomplete-signature-doc": "Warning",
1102+
"inject-field": "Warning",
10981103
/*
10991104
Enable diagnostics for accesses to fields which are invisible.
11001105
*/
@@ -1853,7 +1858,7 @@ false
18531858

18541859
# runtime.plugin
18551860

1856-
Plugin path. Please read the [wiki](https://luals.github.io/wiki/plugins) to learn more.
1861+
Plugin path. Please read [wiki](https://luals.github.io/wiki/plugins) to learn more.
18571862

18581863
## type
18591864

@@ -2168,21 +2173,20 @@ Automatic detection and adaptation of third-party libraries, currently supported
21682173
* skynet
21692174
* Jass
21702175

2171-
Value can be one of:
2172-
* `Ask` (ask every time)
2173-
* `Apply` (always apply third-party libraries and set the workspace
2174-
configuration)
2175-
* `ApplyInMemory` (always apply third-party libraries but don't set the
2176-
workspace configuration)
2177-
* `Disable` (don't ask and don't apply)
2178-
21792176

21802177
## type
21812178

21822179
```ts
21832180
string
21842181
```
21852182

2183+
## enum
2184+
2185+
* ``"Ask"``
2186+
* ``"Apply"``
2187+
* ``"ApplyInMemory"``
2188+
* ``"Disable"``
2189+
21862190
## default
21872191

21882192
```jsonc
@@ -2299,4 +2303,4 @@ Array<string>
22992303

23002304
```jsonc
23012305
[]
2302-
```
2306+
```

doc/pt-br/config.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ Array<string>
258258
* ``"global-in-nil-env"``
259259
* ``"incomplete-signature-doc"``
260260
* ``"index-in-func-name"``
261+
* ``"inject-field"``
261262
* ``"invisible"``
262263
* ``"jump-local-scope"``
263264
* ``"keyword"``
@@ -505,6 +506,7 @@ object<string, string>
505506
* assign-type-mismatch
506507
* cast-local-type
507508
* cast-type-mismatch
509+
* inject-field
508510
* need-check-nil
509511
* param-type-mismatch
510512
* return-type-mismatch
@@ -633,6 +635,7 @@ object<string, string>
633635
* assign-type-mismatch
634636
* cast-local-type
635637
* cast-type-mismatch
638+
* inject-field
636639
* need-check-nil
637640
* param-type-mismatch
638641
* return-type-mismatch
@@ -738,7 +741,7 @@ object<string, string>
738741
```jsonc
739742
{
740743
/*
741-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
744+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
742745
*/
743746
"ambiguity-1": "Any",
744747
/*
@@ -826,6 +829,7 @@ object<string, string>
826829
Incomplete @param or @return annotations for functions.
827830
*/
828831
"incomplete-signature-doc": "None",
832+
"inject-field": "Opened",
829833
/*
830834
Enable diagnostics for accesses to fields which are invisible.
831835
*/
@@ -1007,7 +1011,7 @@ object<string, string>
10071011
```jsonc
10081012
{
10091013
/*
1010-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
1014+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
10111015
*/
10121016
"ambiguity-1": "Warning",
10131017
/*
@@ -1095,6 +1099,7 @@ object<string, string>
10951099
Incomplete @param or @return annotations for functions.
10961100
*/
10971101
"incomplete-signature-doc": "Warning",
1102+
"inject-field": "Warning",
10981103
/*
10991104
Enable diagnostics for accesses to fields which are invisible.
11001105
*/
@@ -1853,7 +1858,7 @@ false
18531858

18541859
# runtime.plugin
18551860

1856-
Plugin path. Please read the [wiki](https://luals.github.io/wiki/plugins) to learn more.
1861+
Plugin path. Please read [wiki](https://luals.github.io/wiki/plugins) to learn more.
18571862

18581863
## type
18591864

@@ -2168,20 +2173,20 @@ Automatic detection and adaptation of third-party libraries, currently supported
21682173
* skynet
21692174
* Jass
21702175

2171-
Value can be one of:
2172-
* `Ask` (ask every time)
2173-
* `Apply` (always apply third-party libraries and set the workspace
2174-
configuration)
2175-
* `ApplyInMemory` (always apply third-party libraries but don't set the
2176-
workspace configuration)
2177-
* `Disable` (don't ask and don't apply)
21782176

21792177
## type
21802178

21812179
```ts
21822180
string
21832181
```
21842182

2183+
## enum
2184+
2185+
* ``"Ask"``
2186+
* ``"Apply"``
2187+
* ``"ApplyInMemory"``
2188+
* ``"Disable"``
2189+
21852190
## default
21862191

21872192
```jsonc
@@ -2298,4 +2303,4 @@ Array<string>
22982303

22992304
```jsonc
23002305
[]
2301-
```
2306+
```

doc/zh-cn/config.md

+16-12
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ Array<string>
258258
* ``"global-in-nil-env"``
259259
* ``"incomplete-signature-doc"``
260260
* ``"index-in-func-name"``
261+
* ``"inject-field"``
261262
* ``"invisible"``
262263
* ``"jump-local-scope"``
263264
* ``"keyword"``
@@ -505,6 +506,7 @@ object<string, string>
505506
* assign-type-mismatch
506507
* cast-local-type
507508
* cast-type-mismatch
509+
* inject-field
508510
* need-check-nil
509511
* param-type-mismatch
510512
* return-type-mismatch
@@ -633,6 +635,7 @@ object<string, string>
633635
* assign-type-mismatch
634636
* cast-local-type
635637
* cast-type-mismatch
638+
* inject-field
636639
* need-check-nil
637640
* param-type-mismatch
638641
* return-type-mismatch
@@ -738,7 +741,7 @@ object<string, string>
738741
```jsonc
739742
{
740743
/*
741-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
744+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
742745
*/
743746
"ambiguity-1": "Any",
744747
/*
@@ -826,6 +829,7 @@ object<string, string>
826829
Incomplete @param or @return annotations for functions.
827830
*/
828831
"incomplete-signature-doc": "None",
832+
"inject-field": "Opened",
829833
/*
830834
Enable diagnostics for accesses to fields which are invisible.
831835
*/
@@ -1006,7 +1010,7 @@ object<string, string>
10061010
```jsonc
10071011
{
10081012
/*
1009-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
1013+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
10101014
*/
10111015
"ambiguity-1": "Warning",
10121016
/*
@@ -1094,6 +1098,7 @@ object<string, string>
10941098
Incomplete @param or @return annotations for functions.
10951099
*/
10961100
"incomplete-signature-doc": "Warning",
1101+
"inject-field": "Warning",
10971102
/*
10981103
Enable diagnostics for accesses to fields which are invisible.
10991104
*/
@@ -1659,7 +1664,7 @@ string
16591664

16601665
# misc.parameters
16611666

1662-
VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage/#arguments)
1667+
VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage#arguments)
16631668

16641669
## type
16651670

@@ -2167,21 +2172,20 @@ true
21672172
* skynet
21682173
* Jass
21692174

2170-
Value can be one of:
2171-
* `Ask` (ask every time)
2172-
* `Apply` (always apply third-party libraries and set the workspace
2173-
configuration)
2174-
* `ApplyInMemory` (always apply third-party libraries but don't set the
2175-
workspace configuration)
2176-
* `Disable` (don't ask and don't apply)
2177-
21782175

21792176
## type
21802177

21812178
```ts
21822179
string
21832180
```
21842181

2182+
## enum
2183+
2184+
* ``"Ask"``
2185+
* ``"Apply"``
2186+
* ``"ApplyInMemory"``
2187+
* ``"Disable"``
2188+
21852189
## default
21862190

21872191
```jsonc
@@ -2298,4 +2302,4 @@ Array<string>
22982302

22992303
```jsonc
23002304
[]
2301-
```
2305+
```

doc/zh-tw/config.md

+13-8
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ Array<string>
258258
* ``"global-in-nil-env"``
259259
* ``"incomplete-signature-doc"``
260260
* ``"index-in-func-name"``
261+
* ``"inject-field"``
261262
* ``"invisible"``
262263
* ``"jump-local-scope"``
263264
* ``"keyword"``
@@ -505,6 +506,7 @@ object<string, string>
505506
* assign-type-mismatch
506507
* cast-local-type
507508
* cast-type-mismatch
509+
* inject-field
508510
* need-check-nil
509511
* param-type-mismatch
510512
* return-type-mismatch
@@ -633,6 +635,7 @@ object<string, string>
633635
* assign-type-mismatch
634636
* cast-local-type
635637
* cast-type-mismatch
638+
* inject-field
636639
* need-check-nil
637640
* param-type-mismatch
638641
* return-type-mismatch
@@ -826,6 +829,7 @@ object<string, string>
826829
Incomplete @param or @return annotations for functions.
827830
*/
828831
"incomplete-signature-doc": "None",
832+
"inject-field": "Opened",
829833
/*
830834
Enable diagnostics for accesses to fields which are invisible.
831835
*/
@@ -1094,6 +1098,7 @@ object<string, string>
10941098
Incomplete @param or @return annotations for functions.
10951099
*/
10961100
"incomplete-signature-doc": "Warning",
1101+
"inject-field": "Warning",
10971102
/*
10981103
Enable diagnostics for accesses to fields which are invisible.
10991104
*/
@@ -2167,20 +2172,20 @@ true
21672172
* skynet
21682173
* Jass
21692174

2170-
Value can be one of:
2171-
* `Ask` (ask every time)
2172-
* `Apply` (always apply third-party libraries and set the workspace
2173-
configuration)
2174-
* `ApplyInMemory` (always apply third-party libraries but don't set the
2175-
workspace configuration)
2176-
* `Disable` (don't ask and don't apply)
21772175

21782176
## type
21792177

21802178
```ts
21812179
string
21822180
```
21832181

2182+
## enum
2183+
2184+
* ``"Ask"``
2185+
* ``"Apply"``
2186+
* ``"ApplyInMemory"``
2187+
* ``"Disable"``
2188+
21842189
## default
21852190

21862191
```jsonc
@@ -2297,4 +2302,4 @@ Array<string>
22972302

22982303
```jsonc
22992304
[]
2300-
```
2305+
```

locale/pt-br/meta.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ math.maxinteger['>5.3'] =
523523
'Retorna o valor máximo para um inteiro.'
524524
math.min =
525525
'Retorna o argumento com o valor mínimo de acordo com o operador `<`.'
526-
math.mixinteger['>5.3'] =
526+
math.mininteger['>5.3'] =
527527
'Retorna o valor mínimo para um inteiro.'
528528
math.modf =
529529
'Retorna a parte inteira e a parte fracionária de `x`.'

0 commit comments

Comments
 (0)