Skip to content

Commit 5538111

Browse files
oscaroterolildude
andauthored
Add support for Vento language (#6733)
* Added Vento grammar * Addev Vento * Removed .vento extension * fixed Vento grammar link * fix vento grammar submodule * Update sample * Update tm_scope for Vento * removed duplicated license * add-grammar --replace vscode-vento [url] * fixed tests * Reintroduce Vento to vendor/readme --------- Co-authored-by: Colin Seymour <[email protected]>
1 parent 865ad2a commit 5538111

File tree

7 files changed

+115
-1
lines changed

7 files changed

+115
-1
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,9 @@
14551455
[submodule "vendor/grammars/vscode-vcard"]
14561456
path = vendor/grammars/vscode-vcard
14571457
url = https://github.com/cstrachan88/vscode-vcard.git
1458+
[submodule "vendor/grammars/vscode-vento"]
1459+
path = vendor/grammars/vscode-vento
1460+
url = https://github.com/ventojs/vscode-vento.git
14581461
[submodule "vendor/grammars/vscode-vlang"]
14591462
path = vendor/grammars/vscode-vlang
14601463
url = https://github.com/0x9ef/vscode-vlang

grammars.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,9 @@ vendor/grammars/vscode-vba:
12981298
- source.wwb
12991299
vendor/grammars/vscode-vcard:
13001300
- source.vcard
1301+
vendor/grammars/vscode-vento:
1302+
- source.vento
1303+
- text.html.vento
13011304
vendor/grammars/vscode-vlang:
13021305
- source.v
13031306
vendor/grammars/vscode-wit:

lib/linguist/languages.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7958,6 +7958,14 @@ Velocity Template Language:
79587958
codemirror_mode: velocity
79597959
codemirror_mime_type: text/velocity
79607960
language_id: 292377326
7961+
Vento:
7962+
type: markup
7963+
color: "#ff0080"
7964+
extensions:
7965+
- ".vto"
7966+
tm_scope: source.vento
7967+
ace_mode: text
7968+
language_id: 757053899
79617969
Verilog:
79627970
type: programming
79637971
color: "#b2b7f8"
@@ -8978,4 +8986,4 @@ xBase:
89788986
- ".prw"
89798987
tm_scope: source.harbour
89808988
ace_mode: text
8981-
language_id: 421
8989+
language_id: 421

samples/Vento/index.vto

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
layout: ./base.vto
3+
page_css: docs.css
4+
---
5+
6+
<div class="doc">
7+
{{ include "templates/doc-navbar.vto" }}
8+
9+
<main class="doc-content">
10+
<header class="doc-header">
11+
<h1>{{ title }}</h1>
12+
{{ description |> md }}
13+
14+
{{ include "templates/toc.vto" }}
15+
</header>
16+
17+
<div class="doc-body">
18+
{{ content }}
19+
20+
{{ if related }}
21+
<nav class="doc-related" label="Related content">
22+
<h2>Related to this</h2>
23+
<ul>
24+
{{ for item of related }}
25+
<li>
26+
{{ set p = search.data(item) }}
27+
<a href="{{ p.url }}">{{ p.title }}</a>
28+
</li>
29+
{{ /for }}
30+
</ul>
31+
</nav>
32+
{{ /if }}
33+
</div>
34+
35+
<div class="doc-footer-edit">
36+
<a href="https://github.com/lumeland/lume.land/edit/main{{ page.src.entry.path }}" class="doc-edit-link">
37+
<svg width="1.2em" height="1.2em" viewBox="0 0 24 24" fill="none">
38+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.5858 4.41421C16.3668 3.63316 17.6332 3.63316 18.4142 4.41421L19.5858 5.58579C20.3668 6.36683 20.3668 7.63316 19.5858 8.41421L8.58579 19.4142C8.21071 19.7893 7.70201 20 7.17157 20H4C3.44772 20 3 19.5523 3 19V15.8284C3 15.298 3.21071 14.7893 3.58579 14.4142L14.5858 3.41421C15.3668 2.63316 16.6332 2.63316 17.4142 3.41421L18.5858 4.58579C19.3668 5.36683 19.3668 6.63316 18.5858 7.41421L7.58579 18.4142C7.21071 18.7893 6.70201 19 6.17157 19H4C3.44772 19 3 18.5523 3 18V15.8284C3 15.298 3.21071 14.7893 3.58579 14.4142L14.5858 3.41421C15.3668 2.63316 16.6332 2.63316 17.4142 3.41421L18.5858 4.58579C19.3668 5.36683 19.3668 6.63316 18.5858 7.41421L7.58579 18.4142C7.21071 18.7893 6.70201 19 6.17157 19H4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
39+
</svg>
40+
Edit this page
41+
</a>
42+
</div>
43+
<footer class="doc-footer">
44+
<ul class="doc-pagination">
45+
{{- set previousPost = search.previousPage(url, "url^=/docs/", "section_order order title") }}
46+
{{- if previousPost }}
47+
<li class="is-prev">
48+
<a href="{{ previousPost.url }}" rel="prev">
49+
← Previous
50+
<strong>{{ previousPost.title }}</strong>
51+
</a>
52+
</li>
53+
{{ /if }}
54+
55+
{{- set nextPost = search.nextPage(url, "url^=/docs/", "section_order order title") }}
56+
{{- if nextPost }}
57+
<li class="is-next">
58+
<a href="{{ nextPost.url }}" rel="next">
59+
Next →
60+
<strong>{{ nextPost.title }}</strong>
61+
</a>
62+
</li>
63+
{{ /if }}
64+
</ul>
65+
</footer>
66+
</main>
67+
</div>

vendor/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
634634
- **Vala:** [technosophos/Vala-TMBundle](https://github.com/technosophos/Vala-TMBundle)
635635
- **Valve Data Format:** [Nixinova/NovaGrammars](https://github.com/Nixinova/NovaGrammars)
636636
- **Velocity Template Language:** [animecyc/AtomLanguageVelocity](https://github.com/animecyc/AtomLanguageVelocity)
637+
- **Vento:** [ventojs/vscode-vento](https://github.com/ventojs/vscode-vento)
637638
- **Verilog:** [textmate/verilog.tmbundle](https://github.com/textmate/verilog.tmbundle)
638639
- **Vim Help File:** [Alhadis/language-viml](https://github.com/Alhadis/language-viml)
639640
- **Vim Script:** [Alhadis/language-viml](https://github.com/Alhadis/language-viml)

vendor/grammars/vscode-vento

Submodule vscode-vento added at 3234e7c
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: vscode-vento
3+
version: 3234e7c6a64b55a4acd716ac69c6c1401d3dda57
4+
type: git_submodule
5+
homepage: https://github.com/ventojs/vscode-vento.git
6+
license: mit
7+
licenses:
8+
- sources: LICENSE
9+
text: |-
10+
MIT License
11+
12+
Copyright (c) 2023 - Oscar Otero
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+
notices: []

0 commit comments

Comments
 (0)