mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
Add Cooklang
This commit is contained in:
parent
c993f27469
commit
2dfe7a5839
3 changed files with 32 additions and 0 deletions
1
ftdetect/cooklang.vim
Normal file
1
ftdetect/cooklang.vim
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
autocmd BufRead,BufNewFile *.cook set filetype=cooklang
|
||||||
|
|
@ -968,6 +968,15 @@ list.solidity = {
|
||||||
maintainers = { "@YongJieYongJie" },
|
maintainers = { "@YongJieYongJie" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.cooklang = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/addcninblue/tree-sitter-cooklang",
|
||||||
|
branch = "master",
|
||||||
|
files = { "src/parser.c", "src/scanner.cc" },
|
||||||
|
},
|
||||||
|
maintainers = { "@addcninblue" },
|
||||||
|
}
|
||||||
|
|
||||||
local M = {
|
local M = {
|
||||||
list = list,
|
list = list,
|
||||||
filetype_to_parsername = filetype_to_parsername,
|
filetype_to_parsername = filetype_to_parsername,
|
||||||
|
|
|
||||||
22
queries/cooklang/highlights.scm
Normal file
22
queries/cooklang/highlights.scm
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
(metadata) @comment
|
||||||
|
|
||||||
|
(ingredient
|
||||||
|
"@" @tag
|
||||||
|
(name)? @text.title
|
||||||
|
(amount
|
||||||
|
(quantity)? @number
|
||||||
|
(units)? @tag.attribute)?)
|
||||||
|
|
||||||
|
(timer
|
||||||
|
"~" @tag
|
||||||
|
(name)? @text.title
|
||||||
|
(amount
|
||||||
|
(quantity)? @number
|
||||||
|
(units)? @tag.attribute)?)
|
||||||
|
|
||||||
|
(cookware
|
||||||
|
"#" @tag
|
||||||
|
(name)? @text.title
|
||||||
|
(amount
|
||||||
|
(quantity)? @number
|
||||||
|
(units)? @tag.attribute)?)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue