This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local M = {} | |
--- Find pattern in `s` and capture arguments into an array. | |
--- @param s string | |
--- @param pattern string | |
--- @param arity integer | |
--- @return integer|nil, integer|nil, string[] | |
local function matchMacroHelper(s, pattern, arity) | |
local i, j = s:find(pattern) | |
local args = {} |
OlderNewer