Home | History | Annotate | Download | only in lint1

Lines Matching refs:msgs

2 -- $NetBSD: check-msgs.lua,v 1.22 2024/03/01 17:22:55 rillig Exp $
6 usage: lua ./check-msgs.lua *.c *.y
15 local msgs = {} ---@type table<string>string
21 msgs[id] = msg
27 return msgs
39 local function check_message(fname, lineno, id, comment, msgs)
40 local msg = msgs[id]
76 local function check_file(fname, msgs)
89 check_message(fname, lineno, id, comment, msgs)
92 fname, lineno, id, msgs[id])
113 local function check_test_files(msgs)
119 if msgs[msgid] then
120 local unescaped_msg = msgs[msgid]:gsub("\\(.)", "%1")
176 local msgs = load_messages()
178 check_file(fname, msgs)
183 check_test_files(msgs)