Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonorangeapple committed Dec 31, 2023
1 parent 7412ded commit fbd0178
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 44 deletions.
4 changes: 0 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// A launch configuration that launches the extension inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
Expand Down
3 changes: 1 addition & 2 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.vscode/**
.vscode-test/**
.gitignore
vsc-extension-quickstart.md
.gitignore
5 changes: 0 additions & 5 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [ "/*", "*/" ]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
// symbols that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
Expand Down
17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"displayName": "JunLang",
"description": "",
"publisher": "Jun-Software",
"version": "1.0.0",
"version": "1.1.0",
"engines": {
"vscode": "^1.54.0"
},
"categories": [
"Programming Languages"
"Programming Languages",
"Snippets"
],
"contributes": {
"languages": [{
Expand All @@ -21,6 +22,16 @@
"language": "junlang",
"scopeName": "source.junlang",
"path": "./syntaxes/junlang.tmLanguage.json"
}]
}],
"snippets": [
{
"language": "junlang",
"path": "./snippets/junlang.if.code-snippets"
},
{
"language": "junlang",
"path": "./snippets/junlang.loop.code-snippets"
}
]
}
}
11 changes: 11 additions & 0 deletions snnippets/junlang.if.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"junlang.if": {
"prefix": "if",
"body": [
"if $1",
"$2",
"end-if"
],
"description": "`junlang.if` snippets."
}
}
11 changes: 11 additions & 0 deletions snnippets/junlang.loop.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"junlang.loop": {
"prefix": "loop",
"body": [
"loop $1",
"$2",
"end-loop"
],
"description": "`junlang.loop` snippets."
}
}
60 changes: 30 additions & 30 deletions syntaxes/junlang.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "junlang",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#strings"
}
],
"repository": {
"keywords": {
"patterns": [{
"name": "keyword.control.junlang",
"match": "\\b(output|wrap|new|set|input|addition|subtraction|multiplication|division|equal|greater|less|equal_or_greater|equal_or_less|not|if|end-if|loop|end-loop)\\b"
}, {
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "junlang",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#strings"
}
],
"repository": {
"keywords": {
"patterns": [{
"name": "keyword.control.junlang",
"match": "\\b(output|wrap|new|set|input|addition|subtraction|multiplication|division|equal|greater|less|equal_or_greater|equal_or_less|not|if|end-if|loop|end-loop)\\b"
}, {
"name": "comment.line.junlang",
"begin": "note",
"end": "\n"
}]
},
"strings": {
"name": "string.quoted.double.junlang",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.junlang",
"match": "\\\\."
}
]
}
},
"scopeName": "source.junlang"
},
"strings": {
"name": "string.quoted.double.junlang",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.junlang",
"match": "\\\\."
}
]
}
},
"scopeName": "source.junlang"
}

0 comments on commit fbd0178

Please sign in to comment.