Add Cooklang by dubadub · Pull Request #7497 · github-linguist/linguist · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
2 changes: 2 additions & 0 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ vendor/grammars/ColdFusion:
- source.cfscript.cfc
- text.cfml.basic
- text.html.cfm
vendor/grammars/CookVSCode:
- source.cooklang
vendor/grammars/Cylc.tmbundle:
- source.cylc
vendor/grammars/Dafny-VSCode:
Expand Down
9 changes: 9 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,15 @@ Component Pascal:
codemirror_mode: pascal
codemirror_mime_type: text/x-pascal
language_id: 67
Cooklang:
type: markup
color: "#E15A29"
wrap: true
extensions:
- ".cook"
ace_mode: text
tm_scope: source.cooklang
language_id: 788037493
Cool:
type: programming
extensions:
Expand Down
53 changes: 53 additions & 0 deletions samples/Cooklang/advanced_recipe.cook
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
time required: 90 minutes
---

===== Nut roll ======

Add @sugar{1%tbsp} and @yeast{15%g} to the warm @milk{250%ml}.
Mix well until the yeast is fully dissolved.

> This recipe is reconstruction of my grandma's recipes,
> I tried to reduce sugar amount though.

Add @flour{5%tbsp} from the total amount and whisk the mixture
into a batter-like consistency, similar to pancake batter.
Cover with a #towel{} and place in a warm place for ~{30%minutes}.

The dough should rise, and bubbles will form on the surface.

Add @egg{1}, @sugar{100%g}, @vanilla sugar{1%packet}, and
melted @butter{50%g} to the mixture. Whisk thoroughly.

Gradually add the rest of the @flour{495%g} in two stages and
knead the dough.

Knead for ~{10-15%minutes}. Cover the dough and place it
in a warm place for ~{1.5%hours}

== Fillings ==

Grind the stuff. Mix them together.

== Assembly ==

Divide the dough into two equal pieces.

Dust the surface with flour and roll the dough into a rectangle
about 0.5 cm thick.

Generously spread the nut filling over the dough, distributing it
evenly. Leave an empty space along the edges so the roll seals properly.

Carefully roll the dough into a log, pressing it firmly to
avoid air pockets.

Place it on a baking sheet lined with parchment paper.

Roll out the second piece of dough and form another roll in
the same way.

Cover the rolls with a towel and let them rest for 20 minutes.

Then brush them with @egg yolk{1} and bake in a preheated oven
at 170°C for ~{50-60%minutes}.
18 changes: 18 additions & 0 deletions samples/Cooklang/simple_recipe.cook
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
quick: true
servings: 4
prep time: 10 minutes
cook time: 15 minutes
---

Crack the @eggs{3} into a blender, then add the @plain flour{125%g}, @milk{250%ml} and @sea salt{1%pinch}, and blitz until smooth.

Pour into a #bowl and leave to stand for ~{20%minutes}.

Melt the butter in a large non-stick #frying pan{} on a medium heat, then tilt the pan so the butter coats the surface.

Pour in 1 ladle of batter and tilt again, so that the batter spreads all over the base, then cook for 1 to 2 minutes, or until it starts to come away from the sides.

Once golden underneath, flip the pancake over and cook for 1 further minute, or until cooked through.

Serve straightaway, topping with @smoked salmon{} or your favorite topping.
1 change: 1 addition & 0 deletions vendor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **Common Lisp:** [qingpeng9802/common-lisp-tmlanguage](https://github.com/qingpeng9802/common-lisp-tmlanguage)
- **Common Workflow Language:** [manabuishii/language-cwl](https://github.com/manabuishii/language-cwl)
- **Component Pascal:** [textmate/pascal.tmbundle](https://github.com/textmate/pascal.tmbundle)
- **Cooklang:** [cooklang/CookVSCode](https://github.com/cooklang/CookVSCode)
- **Cool:** [anunayk/cool-tmbundle](https://github.com/anunayk/cool-tmbundle)
- **Cpp-ObjDump:** [nanoant/assembly.tmbundle](https://github.com/nanoant/assembly.tmbundle)
- **Creole:** [Siddley/Creole](https://github.com/Siddley/Creole)
Expand Down
1 change: 1 addition & 0 deletions vendor/grammars/CookVSCode
Submodule CookVSCode added at 82b81f
54 changes: 54 additions & 0 deletions vendor/licenses/git_submodule/CookVSCode.dep.yml