Add Cooklang

This commit is contained in:
Addison Chan 2022-03-14 10:01:14 -07:00 committed by Stephan Seitz
parent c993f27469
commit 2dfe7a5839
3 changed files with 32 additions and 0 deletions

1
ftdetect/cooklang.vim Normal file
View file

@ -0,0 +1 @@
autocmd BufRead,BufNewFile *.cook set filetype=cooklang

View file

@ -968,6 +968,15 @@ list.solidity = {
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 = {
list = list,
filetype_to_parsername = filetype_to_parsername,

View 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)?)