Skip to content

Commit 2744e79

Browse files
authored
Add Cooklang (#7497)
* feat: add Cooklang * feat: enable wrap * fix: add via ./script/add-grammar * fix: cleanup sublime * fix: remove menu * refactor: use source.cooklang instead of source.cook * fix: tests * Update license ref for Cooklang
1 parent 6cff403 commit 2744e79

File tree

8 files changed

+141
-0
lines changed

8 files changed

+141
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
[submodule "vendor/grammars/ColdFusion"]
3232
path = vendor/grammars/ColdFusion
3333
url = https://github.com/SublimeText/ColdFusion
34+
[submodule "vendor/grammars/CookVSCode"]
35+
path = vendor/grammars/CookVSCode
36+
url = https://github.com/cooklang/CookVSCode.git
3437
[submodule "vendor/grammars/Cylc.tmbundle"]
3538
path = vendor/grammars/Cylc.tmbundle
3639
url = https://github.com/cylc/Cylc.tmbundle.git

grammars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ vendor/grammars/ColdFusion:
2424
- source.cfscript.cfc
2525
- text.cfml.basic
2626
- text.html.cfm
27+
vendor/grammars/CookVSCode:
28+
- source.cooklang
2729
vendor/grammars/Cylc.tmbundle:
2830
- source.cylc
2931
vendor/grammars/Dafny-VSCode:

lib/linguist/languages.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,15 @@ Component Pascal:
13701370
codemirror_mode: pascal
13711371
codemirror_mime_type: text/x-pascal
13721372
language_id: 67
1373+
Cooklang:
1374+
type: markup
1375+
color: "#E15A29"
1376+
wrap: true
1377+
extensions:
1378+
- ".cook"
1379+
ace_mode: text
1380+
tm_scope: source.cooklang
1381+
language_id: 788037493
13731382
Cool:
13741383
type: programming
13751384
extensions:
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
time required: 90 minutes
3+
---
4+
5+
===== Nut roll ======
6+
7+
Add @sugar{1%tbsp} and @yeast{15%g} to the warm @milk{250%ml}.
8+
Mix well until the yeast is fully dissolved.
9+
10+
> This recipe is reconstruction of my grandma's recipes,
11+
> I tried to reduce sugar amount though.
12+
13+
Add @flour{5%tbsp} from the total amount and whisk the mixture
14+
into a batter-like consistency, similar to pancake batter.
15+
Cover with a #towel{} and place in a warm place for ~{30%minutes}.
16+
17+
The dough should rise, and bubbles will form on the surface.
18+
19+
Add @egg{1}, @sugar{100%g}, @vanilla sugar{1%packet}, and
20+
melted @butter{50%g} to the mixture. Whisk thoroughly.
21+
22+
Gradually add the rest of the @flour{495%g} in two stages and
23+
knead the dough.
24+
25+
Knead for ~{10-15%minutes}. Cover the dough and place it
26+
in a warm place for ~{1.5%hours}
27+
28+
== Fillings ==
29+
30+
Grind the stuff. Mix them together.
31+
32+
== Assembly ==
33+
34+
Divide the dough into two equal pieces.
35+
36+
Dust the surface with flour and roll the dough into a rectangle
37+
about 0.5 cm thick.
38+
39+
Generously spread the nut filling over the dough, distributing it
40+
evenly. Leave an empty space along the edges so the roll seals properly.
41+
42+
Carefully roll the dough into a log, pressing it firmly to
43+
avoid air pockets.
44+
45+
Place it on a baking sheet lined with parchment paper.
46+
47+
Roll out the second piece of dough and form another roll in
48+
the same way.
49+
50+
Cover the rolls with a towel and let them rest for 20 minutes.
51+
52+
Then brush them with @egg yolk{1} and bake in a preheated oven
53+
at 170°C for ~{50-60%minutes}.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
quick: true
3+
servings: 4
4+
prep time: 10 minutes
5+
cook time: 15 minutes
6+
---
7+
8+
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.
9+
10+
Pour into a #bowl and leave to stand for ~{20%minutes}.
11+
12+
Melt the butter in a large non-stick #frying pan{} on a medium heat, then tilt the pan so the butter coats the surface.
13+
14+
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.
15+
16+
Once golden underneath, flip the pancake over and cook for 1 further minute, or until cooked through.
17+
18+
Serve straightaway, topping with @smoked salmon{} or your favorite topping.

vendor/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
123123
- **Common Lisp:** [qingpeng9802/common-lisp-tmlanguage](https://github.com/qingpeng9802/common-lisp-tmlanguage)
124124
- **Common Workflow Language:** [manabuishii/language-cwl](https://github.com/manabuishii/language-cwl)
125125
- **Component Pascal:** [textmate/pascal.tmbundle](https://github.com/textmate/pascal.tmbundle)
126+
- **Cooklang:** [cooklang/CookVSCode](https://github.com/cooklang/CookVSCode)
126127
- **Cool:** [anunayk/cool-tmbundle](https://github.com/anunayk/cool-tmbundle)
127128
- **Cpp-ObjDump:** [nanoant/assembly.tmbundle](https://github.com/nanoant/assembly.tmbundle)
128129
- **Creole:** [Siddley/Creole](https://github.com/Siddley/Creole)

vendor/grammars/CookVSCode

Submodule CookVSCode added at 82b81fb
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: CookVSCode
3+
version: 82b81fb076cb0e613dffc50d26c1e0ed091d3c2f
4+
type: git_submodule
5+
homepage: https://github.com/cooklang/CookVSCode.git
6+
license: mit
7+
licenses:
8+
- sources: LICENSE
9+
text: |
10+
MIT License
11+
12+
Copyright (c) 2021 cooklang
13+
14+
Permission is hereby granted, free of charge, to any person obtaining a copy
15+
of this software and associated documentation files (the "Software"), to deal
16+
in the Software without restriction, including without limitation the rights
17+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18+
copies of the Software, and to permit persons to whom the Software is
19+
furnished to do so, subject to the following conditions:
20+
21+
The above copyright notice and this permission notice shall be included in all
22+
copies or substantial portions of the Software.
23+
24+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30+
SOFTWARE.
31+
- sources: README.md
32+
text: |-
33+
The MIT License (MIT)
34+
35+
Copyright (c) 2021 Alexey Dubovskoy
36+
37+
Permission is hereby granted, free of charge, to any person obtaining a copy
38+
of this software and associated documentation files (the "Software"), to deal
39+
in the Software without restriction, including without limitation the rights
40+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41+
copies of the Software, and to permit persons to whom the Software is
42+
furnished to do so, subject to the following conditions:
43+
44+
The above copyright notice and this permission notice shall be included in
45+
all copies or substantial portions of the Software.
46+
47+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
53+
THE SOFTWARE.
54+
notices: []

0 commit comments

Comments
 (0)