mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-11 18:58:00 +03:00
Add GNU gettext PO grammar (#5996)
This commit is contained in:
parent
b89b2eaf68
commit
864ee8fdef
@ -98,6 +98,7 @@
|
|||||||
| pem | ✓ | | | |
|
| pem | ✓ | | | |
|
||||||
| perl | ✓ | ✓ | ✓ | |
|
| perl | ✓ | ✓ | ✓ | |
|
||||||
| php | ✓ | ✓ | ✓ | `intelephense` |
|
| php | ✓ | ✓ | ✓ | `intelephense` |
|
||||||
|
| po | ✓ | ✓ | | |
|
||||||
| ponylang | ✓ | ✓ | ✓ | |
|
| ponylang | ✓ | ✓ | ✓ | |
|
||||||
| prisma | ✓ | | | `prisma-language-server` |
|
| prisma | ✓ | | | `prisma-language-server` |
|
||||||
| prolog | | | | `swipl` |
|
| prolog | | | | `swipl` |
|
||||||
|
@ -2193,3 +2193,14 @@ indent = { tab-width = 2, unit = " " }
|
|||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "yuck"
|
name = "yuck"
|
||||||
source = { git = "https://github.com/Philipp-M/tree-sitter-yuck", rev = "9e97da5773f82123a8c8cccf8f7e795d140ed7d1" }
|
source = { git = "https://github.com/Philipp-M/tree-sitter-yuck", rev = "9e97da5773f82123a8c8cccf8f7e795d140ed7d1" }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "po"
|
||||||
|
scope = "source.po"
|
||||||
|
file-types = ["po", "pot"]
|
||||||
|
roots = []
|
||||||
|
comment-token = "#"
|
||||||
|
|
||||||
|
[[grammar]]
|
||||||
|
name = "po"
|
||||||
|
source = { git = "https://github.com/erasin/tree-sitter-po", rev = "417cee9abb2053ed26b19e7de972398f2da9b29e" }
|
||||||
|
15
runtime/queries/po/highlights.scm
Normal file
15
runtime/queries/po/highlights.scm
Normal file
@ -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
|
6
runtime/queries/po/textobjects.scm
Normal file
6
runtime/queries/po/textobjects.scm
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
(msgid) @parameter.inside
|
||||||
|
|
||||||
|
(comment) @comment.inside
|
||||||
|
(comment)+ @comment.around
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user