WSP = _{ " "* } linecontent = {( (!"\"" ~ !"\\" ~ ANY)+ | "\\\"" | "\\" )*} line = _{WSP ~ "\"" ~ linecontent ~ "\"" ~ WSP ~ NEWLINE} msgctx = {"msgctx" ~ (WSP ~ NEWLINE | " " ~ (line)*)} msgid = {"msgid " ~ (line)+} msgstr = {"msgstr " ~ (line)+} entry = {msgctx? ~ msgid ~ msgstr} file = {(SOI ~ (entry ~ NEWLINE*)+ ~ EOI)}