Lines Matching refs:match
27 local match, gmatch, gsub = _s.match, _s.gmatch, _s.gsub
140 if not match(name, "^[%a_][%w_]*$") then werror("bad global label") end
537 local tname, ovreg = match(expr, "^([%w_]+):(r1?[0-9])$")
546 local r = match(expr, "^r(1?[0-9])$")
555 local pm, expr2 = match(expr, "^([+-]?)(.*)$")
560 local t, r = match(expr, "^([sd])([0-9]+)$")
572 reglist = match(reglist, "^{%s*([^}]*)}$")
586 local ta, ra, tb, rb = match(reglist,
601 imm = match(imm, "^#(.*)$")
638 imm = match(imm, "^#(.*)$")
676 local s, s2 = match(shift, "^(%S+)%s*(.*)$")
700 if match(label, "^[1-9]$") then
705 local dir, lnum = match(label, "^([<>])([1-9])$")
710 local extname = match(label, "^extern%s+(%S+)$")
727 local p1, wb = match(pn, "^%[%s*(.-)%s*%](!?)$")
731 if match(pn, "^[<>=%-]") or match(pn, "^extern%s+") then
736 local reg, tailr = match(pn, "^([%w_:]+)%s*(.*)$")
753 local imm = match(p2, "^#(.*)$")
765 local p1a, p2 = match(p1, "^([^,%s]*)%s*(.*)$")
768 local imm = match(p2, "^,%s*#(.*)$")
773 local p2a, p3 = match(p2, "^,%s*([^,%s]*)%s*,?%s*(.*)$")
791 local reg, imm = match(q, "^%[%s*([^,%s]*)%s*(.*)%]$")
795 imm = match(imm, "^,%s*#(.*)$")
809 if match(q, "^[<>=%-]") or match(q, "^extern%s+") then
814 local reg, tailr = match(q, "^([%w_:]+)%s*(.*)$")
852 local imm = match(q, "^#(.*)$")
869 if match(q, "^([%w_]+):(r1?[0-9])$") or match(q, "^r(1?[0-9])$") then
882 local r, wb = match(q, "^([^!]*)(!?)$")
894 local imm = match(q, "^#(.*)$")
903 local imm = tonumber(match(q, "^#(.*)$")); n = n + 1
909 local imm = tonumber(match(q, "^#(.*)$")); n = n + 1
1031 if not match(name, "^[%a_][%w_]*$") then
1108 local k1, cc, k2 = match(k, "^(.-)(..)([._].*)$")