mirror of
https://github.com/Open-Argon/argon-vsc-syntax-highlighting.git
synced 2026-10-28 09:44:57 +00:00
add colours
This commit is contained in:
1 parent
4172148ca7
commit
c4224dc807
5 files changed
+98
-65
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1,25 @@
|
||||
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg390198" viewBox="0 0 1024 768"
|
||||
height="768px" width="1024px" version="1.1">
|
||||
<g>
|
||||
<g id="logo-center" transform="translate(0 0)">
|
||||
<g
|
||||
style="font-style:normal;font-weight:300;font-size:72px;line-height:1;font-family:'Montserrat Light Alt1';font-variant-ligatures:none;text-align:center;text-anchor:middle"
|
||||
transform="translate(0 0)">
|
||||
<path
|
||||
style="font-style:normal;font-weight:300;font-size:72px;line-height:1;font-family:'Montserrat Light Alt1';font-variant-ligatures:none;text-align:center;text-anchor:middle"
|
||||
d="m 499.63006,-50.4 h -3.672 L 472.77406,0 h 3.96 l 21.024,-46.368 21.096,46.368 h 3.96 z"
|
||||
stroke-width="0" stroke-linejoin="miter" stroke-miterlimit="2" fill="#2596be" stroke="#2596be"
|
||||
transform="translate(0 359.2) translate(398.2675550000001 -50.79999999999999) scale(3) translate(-472.77406 50.4)">
|
||||
</path>
|
||||
<path
|
||||
style="font-style:normal;font-weight:300;font-size:72px;line-height:1;font-family:'Montserrat Light Alt1';font-variant-ligatures:none;text-align:center;text-anchor:middle"
|
||||
d="m 539.66769,-35.64 c -2.448,1.44 -4.248,3.528 -5.4,6.264 v -8.208 h -3.456 V 0 h 3.6 v -19.584 c 0,-4.608 1.152,-8.28 3.528,-10.872 2.304,-2.592 5.616,-3.96 9.792,-3.96 l 0.864,0.072 v -3.528 c -3.528,0 -6.48,0.792 -8.928,2.232 z"
|
||||
stroke-width="0" stroke-linejoin="miter" stroke-miterlimit="2" fill="#6efbf7" stroke="#6efbf7"
|
||||
transform="translate(0 359.2) translate(572.3804449999999 -13.216000000000001) scale(3) translate(-530.81169 37.872)">
|
||||
</path>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
+39
-27
@@ -1,29 +1,41 @@
|
||||
{
|
||||
"name": "argon",
|
||||
"displayName": "Argon",
|
||||
"description": "",
|
||||
"version": "1.0.0",
|
||||
"publisher": "Ugric",
|
||||
"engines": {
|
||||
"vscode": "^1.81.0"
|
||||
},
|
||||
"categories": [
|
||||
"Programming Languages"
|
||||
],
|
||||
"repository": {
|
||||
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [{
|
||||
"id": "argon",
|
||||
"aliases": ["Argon", "argon"],
|
||||
"extensions": [".ar"],
|
||||
"configuration": "./language-configuration.json"
|
||||
}],
|
||||
"grammars": [{
|
||||
"language": "argon",
|
||||
"scopeName": "source.ar",
|
||||
"path": "./syntaxes/argon.tmLanguage.json"
|
||||
}]
|
||||
}
|
||||
"name": "argon",
|
||||
"displayName": "Argon",
|
||||
"description": "",
|
||||
"version": "1.0.0",
|
||||
"publisher": "Ugric",
|
||||
"engines": {
|
||||
"vscode": "^1.60.0"
|
||||
},
|
||||
"icon": "logos/ArLogo.png",
|
||||
"categories": [
|
||||
"Programming Languages"
|
||||
],
|
||||
"repository": {},
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
"id": "argon",
|
||||
"aliases": [
|
||||
"Argon",
|
||||
"argon"
|
||||
],
|
||||
"extensions": [
|
||||
".ar"
|
||||
],
|
||||
"icon": {
|
||||
"light": "logos/ArLogo.svg",
|
||||
"dark": "logos/ArLogo.svg"
|
||||
},
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "argon",
|
||||
"scopeName": "source.ar",
|
||||
"path": "./syntaxes/argon.tmLanguage.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -23,7 +23,7 @@
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.control.argon",
|
||||
"match": "\\b(if|while|for|return|do|else|continue|break|to|from|import|as)\\b"
|
||||
"match": "\\b(if|while|for|return|do|else|continue|break|to|from|import|as|forever|try|catch)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.argon",
|
||||
@@ -48,7 +48,17 @@
|
||||
{
|
||||
"name": "string.quoted.double.argon",
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.argon"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.argon"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.argon",
|
||||
@@ -57,17 +67,23 @@
|
||||
{
|
||||
"name": "invalid.illegal",
|
||||
"match": "\\\\."
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.argon",
|
||||
"match": "\""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.single.argon",
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.argon"
|
||||
}
|
||||
},
|
||||
"end": "'",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.argon"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.argon",
|
||||
@@ -76,10 +92,6 @@
|
||||
{
|
||||
"name": "invalid.illegal",
|
||||
"match": "\\\\."
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.argon",
|
||||
"match": "'"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -112,11 +124,15 @@
|
||||
"variables": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "entity.name.function",
|
||||
"name": "entity.name.function.argon",
|
||||
"match": "\\b(([a-zA-Z_]|(\\p{L}\\p{M}*))([a-zA-Z0-9_]|(\\p{L}\\p{M}*))*)\\b\\("
|
||||
},
|
||||
{
|
||||
"name": "variable.name",
|
||||
"name": "support.function.argon",
|
||||
"match": "\\b(global|term|file|π|PI|e|√|ArgonVersion|number|string|socket|infinity|map|hex|buffer|throwError|array|boolean|time|ln|log|logN|thread|input|round|floor|ceil|sqrt|file|random|json|sin|arcsin|cos|arccos|tan|arctan|cosec|arccosec|sec|arcsec|cot|arccot|todeg|colour|torad|abs|fraction|dir|subprocess|sequence|exit|error|chr|ord|max|min|path|typeof|sha256)\\b"
|
||||
},
|
||||
{
|
||||
"name": "variable.name.argon",
|
||||
"match": "\\b(([a-zA-Z_]|(\\p{L}\\p{M}*))([a-zA-Z0-9_]|(\\p{L}\\p{M}*))*)\\b"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,27 +1,7 @@
|
||||
let read(path) = do
|
||||
f = file.read(path)
|
||||
text = f.text()
|
||||
data = []
|
||||
splitlines = text.split("\n")
|
||||
for (i from 0 to splitlines.length) do
|
||||
values = []
|
||||
in_quotes = false
|
||||
start = 0
|
||||
line = splitlines[i]
|
||||
for (j from 0 to line.length) do
|
||||
char = line[j]
|
||||
if (char == "," && not in_quotes) do
|
||||
value = line[start:j].rightstrip("\r").strip()
|
||||
if (value && value[0] == "\"" && value[-1] == "\"") value = value[1:value.length - 1]
|
||||
value = value.replace("\"\"", "\"")
|
||||
values.append(value)
|
||||
start = j + 1
|
||||
else if (char == "\"") in_quotes = not in_quotes
|
||||
if (j == line.length - 1) do
|
||||
value = line[start:j + 1].rightstrip("\r").strip()
|
||||
if (value && value[0] == "\"" && value[-1] == "\"") value = value[1:value.length - 1]
|
||||
value = value.replace("\"\"", "\"")
|
||||
values.append(value)
|
||||
data.append(values)
|
||||
|
||||
return data
|
||||
term.log("Hello, World!")
|
||||
term.log("This is a test of the emergency broadcast system.")
|
||||
term.log("This is only a test.")
|
||||
term.log("If this were a real emergency, you would be dead.")
|
||||
term.log("Thank you for your cooperation.")
|
||||
term.log("Have a nice day.")
|
||||
term.log("Goodbye.")
|
||||
Reference in new issue
Block a user