Artifact 259b01764678eca58f5488942842cc0b82677401632f1aa00aeb87b20eb9ac8a:
- File single_doc/lua_lib/算机_程语_月_注_删_不虑字串.lua — part of check-in [60c256f91b] at 2024-06-27 23:36:58 on branch trunk — 0 (user: 顽雨沉风, size: 631) [annotate] [blame] [check-ins using]
- File 残局文料/lua_lib/算机_程语_月_注_删_不虑字串.lua — part of check-in [89f423ff38] at 2024-02-13 07:31:23 on branch trunk — 好 (user: 顽雨沉风, size: 631) [annotate] [blame] [check-ins using]
local 字集库 = require("u8_to_a") local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文")) local string = string local s = {} -- 单行注与多行注 --~ 文 function s.删注(u1) u1 = s.删多行注(u1) return s.删单行注(u1) end do local h1 --~ 模 h1 = 文库.连("%-%-", "%[", "(=*)", "%[", ".-", "%]", "%1", "%]") --~ 文 function s.删多行注(u1) return string.gsub(u1, h1, "") end end do local h1 --~ 模 h1 = 文库.连("%-%-", "[^\n]*") --~ 文 function s.删单行注(u1) return string.gsub(u1, h1, "") end end return s