You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -258,7 +258,7 @@ If you prefer to not use EmmyLua, the following configuration works well for Sum
258
258
}
259
259
```
260
260
261
-
The extension will automatically skip large files from being preloaded (controlled by `Lua.workspace.preloadFileSize`), so they don't have to be excluded. The configuration file can be found by pressing Ctrl-Shift-P and selecting `Preferences: Open Workspace Settings (JSON)`. If you wish to check test files, you can remove the "ignoredFiles" option and install the busted, luafilesystem, and luassert LuaLS addons through `Lua: Open Addon Manager`.
261
+
The extension will automatically skip large files from being preloaded (controlled by `Lua.workspace.preloadFileSize`), so they don't have to be excluded. The configuration file can be found by pressing Ctrl-Shift-P and selecting `Preferences: Open Workspace Settings (JSON)`. If you wish to check test files, you can remove the "ignoredFiles" option and install the busted, LuaFileSystem, and luassert LuaLS addons through `Lua: Open Addon Manager`.
["enemies you kill have a (%d+)%% chance to explode, dealing a (.+) of their maximum life as (.+) damage"] = function(chance, _, amount, type) -- Obliteration, Unspeakable Gifts (chaos cluster), synth implicit mod, current crusader body mod, Ngamahu Warmonger tattoo
@@ -6402,6 +6403,11 @@ end
6402
6403
6403
6404
-- Scan a line for the earliest and longest match from the pattern list
6404
6405
-- If a match is found, returns the corresponding value from the pattern list, plus the remainder of the line and a table of captures
6406
+
---@generic T
6407
+
---@param line string
6408
+
---@param patternList table<string, T>
6409
+
---@param plain? boolean
6410
+
---@return T?, string, string[]?
6405
6411
local function scan(line, patternList, plain)
6406
6412
local bestIndex, bestEndIndex
6407
6413
local bestPattern = ""
@@ -6545,6 +6551,7 @@ local function parseMod(line, order)
6545
6551
modFlag, line = scan(line, modFlagList, true)
6546
6552
6547
6553
-- Find modifier value and type according to form
6554
+
---@type string|number|table
6548
6555
local modValue = tonumber(formCap[1]) or formCap[1]
0 commit comments