Skip to content

Commit 82506ae

Browse files
committed
chore: update std
1 parent 9e0ffb2 commit 82506ae

File tree

12 files changed

+248
-255
lines changed

12 files changed

+248
-255
lines changed

crates/emmylua_ls/std_i18n/builtin/meta.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,20 @@ entries:
9090
line: 118
9191
col: 0
9292
end:
93-
line: 119
93+
line: 120
9494
col: 0
95-
hash: '38c2701334822d7a'
96-
context_hash: c1905bc5fdb3a411
95+
hash: b508ab78f8d1bc46
96+
context_hash: de7cc417de1b3246
9797
- key: std.Unpack
9898
kind:
9999
type: doc_block
100100
indent: ''
101101
range:
102102
start:
103-
line: 121
103+
line: 122
104104
col: 0
105105
end:
106-
line: 123
106+
line: 124
107107
col: 0
108108
hash: c7ad7bb74235dc8c
109109
context_hash: de7cc417de1b3246
@@ -113,10 +113,10 @@ entries:
113113
indent: ''
114114
range:
115115
start:
116-
line: 125
116+
line: 126
117117
col: 0
118118
end:
119-
line: 127
119+
line: 128
120120
col: 0
121121
hash: '7327558f3445dea6'
122122
context_hash: de7cc417de1b3246
@@ -126,10 +126,10 @@ entries:
126126
indent: ''
127127
range:
128128
start:
129-
line: 129
129+
line: 130
130130
col: 0
131131
end:
132-
line: 131
132+
line: 132
133133
col: 0
134134
hash: '0e263d1e0caa6b3b'
135135
context_hash: de7cc417de1b3246
@@ -139,36 +139,36 @@ entries:
139139
indent: ''
140140
range:
141141
start:
142-
line: 145
142+
line: 146
143143
col: 0
144144
end:
145-
line: 146
145+
line: 148
146146
col: 0
147-
hash: d949231b3fc3363d
148-
context_hash: ea58ce70c1a97a2a
147+
hash: '71b070c2fa27cbf9'
148+
context_hash: de7cc417de1b3246
149149
- key: ConstructorParameters
150150
kind:
151151
type: doc_block
152152
indent: ''
153153
range:
154154
start:
155-
line: 148
155+
line: 150
156156
col: 0
157157
end:
158-
line: 149
158+
line: 152
159159
col: 0
160-
hash: '6537def67aeb8537'
161-
context_hash: d32380b12ad01070
160+
hash: '2f4bebd14d7824cb'
161+
context_hash: de7cc417de1b3246
162162
- key: Partial
163163
kind:
164164
type: doc_block
165165
indent: ''
166166
range:
167167
start:
168-
line: 153
168+
line: 157
169169
col: 0
170170
end:
171-
line: 154
171+
line: 159
172172
col: 0
173-
hash: caabe7bd856c5ea6
174-
context_hash: '7f3cfe2b87b6d515'
173+
hash: '5e4213a7c3937182'
174+
context_hash: de7cc417de1b3246

crates/emmylua_ls/std_i18n/builtin/zh_CN.yaml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ boolean: |
77
都会使条件为假;任何其他值都会使条件为真。
88
99
number: |
10-
*number* 类型使用两种内部表示,或两个子类型,一个称为 *integer*,
11-
另一个称为 *float*。Lua 对何时使用哪种表示有明确的规则,但它也会
12-
根据需要在两者之间自动转换。因此,程序员可以选择大部分时候忽略整数
13-
和浮点数之间的差异,或者完全控制每个数字的表示。标准 Lua 使用64位
14-
整数和双精度(64位)浮点数,但你也可以编译 Lua 使其使用32位整数
15-
和/或单精度(32位)浮点数。对于小型机器和嵌入式系统,整数和浮点数
16-
都使用32位的选项特别有吸引力。(参见 luaconf.h 文件中的宏 LUA_32BITS。)
10+
**number** 类型在内部使用两种表示形式,或称为两种子类型,一种叫做
11+
*integer*,另一种叫做 *float*。Lua 对于何时使用哪种表示形式有明确的规则,
12+
但也会在需要时自动进行转换。因此,程序员可以选择忽略整数和浮点数之间的差异,
13+
也可以完全控制每个数字的表示形式。标准 Lua 使用 64 位整数和双精度(64 位)
14+
浮点数,但你也可以将 Lua 编译为使用 32 位整数和/或单精度(32 位)浮点数。
15+
对于小型机器和嵌入式系统来说,同时使用 32 位整数和 32 位浮点数的选项特别有吸引力。
16+
(参见 `luaconf.h` 文件中的宏 `LUA_32BITS`。)
1717
1818
userdata: |
1919
*userdata* 类型用于允许将任意 C 数据存储在 Lua 变量中。userdata 值
20-
表示一块原始内存。有两种 userdata:*完全 userdata*,是一个由 Lua
21-
管理内存块的对象;*轻量 userdata*,仅是一个 C 指针值。userdata 在
22-
Lua 中没有预定义的操作,除了赋值和身份测试。通过使用 *元表*,程序员
23-
可以为完全 userdata 值定义操作。userdata 值不能在 Lua 中创建或修改,
20+
表示一块原始内存。有两种 userdata:*full userdata*,是一个由 Lua
21+
管理内存块的对象;*light userdata*,它仅是一个 C 指针值。userdata 在
22+
Lua 中没有预定义的操作,除了赋值和相等性测试。通过使用 *metatables*,程序员
23+
可以为 full userdata 值定义操作。userdata 值不能在 Lua 中创建或修改,
2424
只能通过 C API 进行。这保证了宿主程序所拥有数据的完整性。
2525
2626
thread: |
@@ -32,15 +32,14 @@ table: |
3232
和 NaN 之外的任何 Lua 值的数组。(*NaN* 是 IEEE 754 标准用于表示
3333
未定义或不可表示的数值结果的特殊浮点值,例如 `0/0`。)表可以是异构的;
3434
也就是说,它们可以包含所有类型的值(除了 **nil**)。值为 **nil** 的
35-
任何键都不被视为表的一部分。相反,不属于表的任何键都有一个关联值 **nil**。
35+
任何键都不被视为表的一部分。相反,任何不属于表的键其关联值都为 **nil**。
3636
37-
表是 Lua 中唯一的数据组织机制;它们可以用来表示普通数组、列表、符号表、
37+
表是 Lua 中唯一的数据结构;它们可以用来表示普通数组、列表、符号表、
3838
集合、记录、图、树等。为了表示记录,Lua 使用字段名作为索引。语言通过
39-
提供 `a.name` 作为 `a["name"]` 的语法糖来支持这种表示。在 Lua 中有
40-
几种方便的方式来创建表。
39+
提供 `a.name` 作为 `a["name"]` 的语法糖来支持这种表示。
4140
42-
与索引一样,表字段的值可以是任何类型。特别是,由于函数是一等值,表
43-
字段可以包含函数。因此表也可以携带 *方法*。
41+
与索引一样,表字段的值可以是任何类型。特别地,由于函数是一等公民,表
42+
字段可以包含函数。因此表也可以携带 *methods*。
4443
4544
表的索引遵循语言中原始相等的定义。表达式 `a[i]` 和 `a[j]` 当且仅当
4645
`i` 和 `j` 原始相等(即不使用元方法的相等)时表示相同的表元素。特别地,

crates/emmylua_ls/std_i18n/coroutine/meta.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ entries:
3535
indent: ''
3636
range:
3737
start:
38-
line: 38
38+
line: 37
3939
col: 0
4040
end:
41-
line: 41
41+
line: 40
4242
col: 0
4343
hash: ed170c5fa338cd96
4444
context_hash: de7cc417de1b3246
@@ -48,10 +48,10 @@ entries:
4848
indent: ''
4949
range:
5050
start:
51-
line: 48
51+
line: 45
5252
col: 0
5353
end:
54-
line: 59
54+
line: 56
5555
col: 0
5656
hash: c68b5b72b7f9a791
5757
context_hash: de7cc417de1b3246
@@ -61,10 +61,10 @@ entries:
6161
indent: ''
6262
range:
6363
start:
64-
line: 66
64+
line: 63
6565
col: 0
6666
end:
67-
line: 69
67+
line: 66
6868
col: 0
6969
hash: '3b9508453c78ef79'
7070
context_hash: de7cc417de1b3246
@@ -74,10 +74,10 @@ entries:
7474
indent: ''
7575
range:
7676
start:
77-
line: 73
77+
line: 70
7878
col: 0
7979
end:
80-
line: 80
80+
line: 77
8181
col: 0
8282
hash: '2c49c377233084fa'
8383
context_hash: de7cc417de1b3246
@@ -87,10 +87,10 @@ entries:
8787
prefix: ' '
8888
range:
8989
start:
90-
line: 82
90+
line: 79
9191
col: 18
9292
end:
93-
line: 82
93+
line: 79
9494
col: 30
9595
hash: c82a37900965429a
9696
context_hash: '6e48d348e70f84c9'
@@ -100,10 +100,10 @@ entries:
100100
prefix: ' '
101101
range:
102102
start:
103-
line: 83
103+
line: 80
104104
col: 18
105105
end:
106-
line: 83
106+
line: 80
107107
col: 47
108108
hash: fa936af8644ed8c3
109109
context_hash: '71a22165c82844bc'
@@ -113,10 +113,10 @@ entries:
113113
prefix: ' '
114114
range:
115115
start:
116-
line: 84
116+
line: 81
117117
col: 18
118118
end:
119-
line: 84
119+
line: 81
120120
col: 45
121121
hash: a13ab0138fac6604
122122
context_hash: e8d5ba7a0e9a3e13
@@ -126,10 +126,10 @@ entries:
126126
prefix: ' '
127127
range:
128128
start:
129-
line: 85
129+
line: 82
130130
col: 18
131131
end:
132-
line: 85
132+
line: 82
133133
col: 57
134134
hash: '72fe2d58f456cb94'
135135
context_hash: '768b9a36fcce3a9c'
@@ -139,10 +139,10 @@ entries:
139139
indent: ''
140140
range:
141141
start:
142-
line: 89
142+
line: 86
143143
col: 0
144144
end:
145-
line: 95
145+
line: 92
146146
col: 0
147147
hash: '980a35b924ee089e'
148148
context_hash: de7cc417de1b3246
@@ -152,10 +152,10 @@ entries:
152152
indent: ''
153153
range:
154154
start:
155-
line: 100
155+
line: 97
156156
col: 0
157157
end:
158-
line: 103
158+
line: 100
159159
col: 0
160160
hash: '25ba6e8d8cf7cc0d'
161161
context_hash: de7cc417de1b3246

0 commit comments

Comments
 (0)