File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 4
4
* ` FIX ` [ #1409 ] ( https://github.com/sumneko/lua-language-server/issues/1409 )
5
5
* ` FIX ` [ #1422 ] ( https://github.com/sumneko/lua-language-server/issues/1422 )
6
6
* ` FIX ` [ #1425 ] ( https://github.com/sumneko/lua-language-server/issues/1425 )
7
+ * ` FIX ` [ #1428 ] ( https://github.com/sumneko/lua-language-server/issues/1428 )
7
8
8
9
## 3.5.2
9
10
` 2022-8-1 `
Original file line number Diff line number Diff line change @@ -244,18 +244,20 @@ function m.getDiagAndErrNameMap()
244
244
for name in pairs (m .getDefaultSeverity ()) do
245
245
names [name ] = true
246
246
end
247
- local path = package.searchpath (' parser.compile' , package.path )
248
- if path then
249
- local f = io.open (path )
250
- if f then
251
- for line in f :lines () do
252
- local name = line :match ([=[ type%s*=%s*['"](%u[%u_]+%u)['"]]=] )
253
- if name then
254
- local id = name :lower ():gsub (' _' , ' -' )
255
- names [id ] = true
247
+ for _ , fileName in ipairs {' parser.compile' , ' parser.luadoc' } do
248
+ local path = package.searchpath (fileName , package.path )
249
+ if path then
250
+ local f = io.open (path )
251
+ if f then
252
+ for line in f :lines () do
253
+ local name = line :match ([=[ type%s*=%s*['"](%u[%u_]+%u)['"]]=] )
254
+ if name then
255
+ local id = name :lower ():gsub (' _' , ' -' )
256
+ names [id ] = true
257
+ end
256
258
end
259
+ f :close ()
257
260
end
258
- f :close ()
259
261
end
260
262
end
261
263
table.sort (names )
You can’t perform that action at this time.
0 commit comments