mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
feat: add PO
This commit is contained in:
parent
d80c99cab0
commit
5b9339f6f4
6 changed files with 55 additions and 0 deletions
9
queries/po/folds.scm
Normal file
9
queries/po/folds.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
(msgctxt)
|
||||
(msgid)
|
||||
(msgid_plural)
|
||||
(msgstr)
|
||||
(msgstr_plural)
|
||||
|
||||
(message)
|
||||
] @fold
|
||||
33
queries/po/highlights.scm
Normal file
33
queries/po/highlights.scm
Normal 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
|
||||
1
queries/po/injections.scm
Normal file
1
queries/po/injections.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(comment) @comment
|
||||
Loading…
Add table
Add a link
Reference in a new issue