feat: add PO

This commit is contained in:
Amaan Qureshi 2023-02-28 00:14:08 -05:00
parent d80c99cab0
commit 5b9339f6f4
6 changed files with 55 additions and 0 deletions

9
queries/po/folds.scm Normal file
View file

@ -0,0 +1,9 @@
[
(msgctxt)
(msgid)
(msgid_plural)
(msgstr)
(msgstr_plural)
(message)
] @fold

33
queries/po/highlights.scm Normal file
View file

@ -0,0 +1,33 @@
; Keywords
[
"msgctxt"
"msgid"
"msgid_plural"
"msgstr"
"msgstr_plural"
] @keyword
; Punctuation
[ "[" "]" ] @punctuation.bracket
; Literals
(string) @string
(escape_sequence) @string.escape
(number) @number
; Comments
(comment) @comment @spell
(comment (reference (text) @string.special.path))
(comment (flag (text) @preproc))
; Errors
(ERROR) @error

View file

@ -0,0 +1 @@
(comment) @comment