File 残局文料/lua_lib/算机_程语_月_注_删_不虑字串.lua artifact fb7338cbcc part of check-in 74a371ffeb
local 字集库 = require("u8_to_a") local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文")) local string = string local d = {} -- 单行注与多行注 --~ 文 function d.删注(o1) o1 = d.删多行注(o1) return d.删单行注(o1) end do local k1 --~ 模 k1 = 文库.连("%-%-", "%[", "(=*)", "%[", ".-", "%]", "%1", "%]") --~ 文 function d.删多行注(o1) return string.gsub(o1, k1, "") end end do local k1 --~ 模 k1 = 文库.连("%-%-", "[^\n]*") --~ 文 function d.删单行注(o1) return string.gsub(o1, k1, "") end end return d