From 864ee8fdef435893832a2698159407bd9b43f274 Mon Sep 17 00:00:00 2001 From: Erasin Date: Tue, 21 Feb 2023 07:04:17 +0800 Subject: Add GNU gettext PO grammar (#5996) --- runtime/queries/po/highlights.scm | 15 +++++++++++++++ runtime/queries/po/textobjects.scm | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 runtime/queries/po/highlights.scm create mode 100644 runtime/queries/po/textobjects.scm (limited to 'runtime/queries/po') diff --git a/runtime/queries/po/highlights.scm b/runtime/queries/po/highlights.scm new file mode 100644 index 00000000..b090f129 --- /dev/null +++ b/runtime/queries/po/highlights.scm @@ -0,0 +1,15 @@ +[ + (msgctxt) + (msgid) + (msgid_plural) + (msgstr) +]@keyword + +(comment) @comment +(comment (comment_reference (text) @string.special.path)) +(comment (comment_flag (text) @label)) + +(number) @constant.numeric +(string) @string + +(ERROR) @error diff --git a/runtime/queries/po/textobjects.scm b/runtime/queries/po/textobjects.scm new file mode 100644 index 00000000..70abcb14 --- /dev/null +++ b/runtime/queries/po/textobjects.scm @@ -0,0 +1,6 @@ +(msgid) @parameter.inside + +(comment) @comment.inside +(comment)+ @comment.around + + -- cgit v1.2.3-70-g09d2