mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
feat: robots.txt support
This commit is contained in:
parent
533da572ae
commit
acea74c514
4 changed files with 20 additions and 0 deletions
|
|
@ -608,6 +608,9 @@
|
||||||
"robot": {
|
"robot": {
|
||||||
"revision": "322e4cc65754d2b3fdef4f2f8a71e0762e3d13af"
|
"revision": "322e4cc65754d2b3fdef4f2f8a71e0762e3d13af"
|
||||||
},
|
},
|
||||||
|
"robots": {
|
||||||
|
"revision": "8e3a4205b76236bb6dbebdbee5afc262ce38bb62"
|
||||||
|
},
|
||||||
"roc": {
|
"roc": {
|
||||||
"revision": "6ea64b6434a45472bd87b0772fd84a017de0a557"
|
"revision": "6ea64b6434a45472bd87b0772fd84a017de0a557"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1780,6 +1780,14 @@ list.robot = {
|
||||||
maintainers = { "@Hubro" },
|
maintainers = { "@Hubro" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.robots = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/opa-oz/tree-sitter-robots-txt",
|
||||||
|
files = { "src/parser.c", "src/scanner.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@opa-oz" },
|
||||||
|
}
|
||||||
|
|
||||||
list.roc = {
|
list.roc = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/faldor20/tree-sitter-roc",
|
url = "https://github.com/faldor20/tree-sitter-roc",
|
||||||
|
|
|
||||||
7
queries/robots/highlights.scm
Normal file
7
queries/robots/highlights.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
(comment) @comment @spell
|
||||||
|
|
||||||
|
(directive) @property
|
||||||
|
|
||||||
|
(value) @string
|
||||||
|
|
||||||
|
":" @punctuation.delimiter
|
||||||
2
queries/robots/injections.scm
Normal file
2
queries/robots/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue