add template string support

This commit is contained in:
Ugric committed 2026-03-07 22:14:31 +00:00
1 parent c226315f7a
commit 43a01c58f1
3 files changed
+52 -2

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
"name": "argon-v3", "name": "argon-v3",
"displayName": "The Argon Programming Language", "displayName": "The Argon Programming Language",
"description": "Syntax highlighting and other features for the Argon programming language.", "description": "Syntax highlighting and other features for the Argon programming language.",
"version": "2.0.5", "version": "2.0.6",
"publisher": "Open-Argon", "publisher": "Open-Argon",
"engines": { "engines": {
"vscode": "^1.60.0" "vscode": "^1.60.0"
+48
View File
@@ -5,6 +5,9 @@
{ {
"include": "#keywords" "include": "#keywords"
}, },
{
"include": "#templates"
},
{ {
"include": "#strings" "include": "#strings"
}, },
@@ -19,6 +22,51 @@
} }
], ],
"repository": { "repository": {
"templates": {
"patterns": [
{
"name": "string.template.argon",
"begin": "`",
"beginCaptures": {
"0": { "name": "punctuation.definition.string.begin.argon" }
},
"end": "`",
"endCaptures": {
"0": { "name": "punctuation.definition.string.end.argon" }
},
"patterns": [
{
"include": "#interpolation"
}
]
}
]
},
"interpolation": {
"patterns": [
{
"name": "meta.interpolation.argon",
"begin": "\\$\\(",
"beginCaptures": {
"0": {
"name": "keyword.operator.argon"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "keyword.operator.argon"
}
},
"patterns": [
{ "include": "#keywords" },
{ "include": "#numbers" },
{ "include": "#strings" },
{ "include": "#variables" }
]
}
]
},
"keywords": { "keywords": {
"patterns": [ "patterns": [
{ {
+3 -1
View File
@@ -1,3 +1,5 @@
forever do forever do
term.log("hello world") term.log("hello world")
time.snooze(2) time.snooze(2)
`hello $(world)`