-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
253 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// 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": [ | ||
{ | ||
"name": "Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
.gitignore | ||
vsc-extension-quickstart.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## 1.0.0 | ||
|
||
* Added syntax highlighting for Blizzard@1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Bradley Myers. All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Blizzard | ||
======== | ||
|
||
Blizzard is a programming language that aims for simplicity while maintaining readability. This extension provides support features for the language. You can find the language's repository [here](https://github.com/BLM16/Blizzard). | ||
|
||
## Features | ||
|
||
Syntax Highlighting | ||
|
||
![Syntax Highlighting Preview](https://raw.githubusercontent.com/BLM16/Blizzard/master/Blizzard.Ext/assets/Extension_Preview.jpg) | ||
|
||
## Requirements | ||
|
||
This extension provides support for the Blizzard programming language. You can find the source code [here](https://github.com/BLM16/Blizzard). Either build the solution yourself, or download the binaries from the [releases](https://github.com/BLM16/Blizzard/releases). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
// symbols that define comment regions | ||
"comments": { | ||
"lineComment": "//", | ||
"blockComment": [ "/*", "*/" ] | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
["(", ")"] | ||
], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
["(", ")"], | ||
["\"", "\""] | ||
], | ||
// symbols that can be used to surround a selection | ||
"surroundingPairs": [ | ||
["(", ")"], | ||
["\"", "\""] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "blizzard", | ||
"displayName": "Blizzard", | ||
"version": "1.0.0", | ||
"description": "Blizzard is a programming language that aims for simplicity while maintaining readability.", | ||
"publisher": "BLM16", | ||
"author": { | ||
"name": "Bradley Myers", | ||
"url": "https://github.com/BLM16" | ||
}, | ||
"engines": { | ||
"vscode": "*" | ||
}, | ||
"categories": [ | ||
"Programming Languages" | ||
], | ||
"keywords": [ | ||
"blizzard", | ||
"language" | ||
], | ||
"extensionKind": [ | ||
"ui", | ||
"workspace" | ||
], | ||
"icon": "assets/Blizzard_Icon_128x128.png", | ||
"galleryBanner": { | ||
"color": "#37b9db", | ||
"theme": "dark" | ||
}, | ||
"homepage": "https://github.com/BLM16/Blizzard", | ||
"readme": "https://github.com/BLM16/Blizzard/blob/master/Blizzard.Ext/README.md", | ||
"license": "LICENSE", | ||
"bugs": "https://github.com/BLM16/Blizzard/issues", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/BLM16/Blizzard.git" | ||
}, | ||
"contributes": { | ||
"languages": [{ | ||
"id": "blizzard", | ||
"aliases": ["Blizzard", "bzz"], | ||
"extensions": [".bzz"], | ||
"configuration": "./language-configuration.json" | ||
}], | ||
"grammars": [{ | ||
"language": "blizzard", | ||
"scopeName": "source.bzz", | ||
"path": "./syntaxes/blizzard.tmLanguage.json" | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | ||
"name": "Blizzard", | ||
"patterns": [ | ||
{ "include": "#comments" }, | ||
{ "include": "#literals" }, | ||
{ "include": "#types" }, | ||
{ "include": "#functionCalls" } | ||
], | ||
"repository": { | ||
"comments": { | ||
"patterns": [ | ||
{ | ||
"name": "comment.block.bzz", | ||
"begin": "/\\*", | ||
"end": "\\*/" | ||
}, | ||
{ | ||
"name": "comment.line.double-slash.bzz", | ||
"begin": "//", | ||
"end": "$" | ||
} | ||
] | ||
}, | ||
"literals": { | ||
"patterns": [ | ||
{ | ||
"name": "string.quoted.double.bzz", | ||
"begin": "\"", | ||
"end": "\"" | ||
}, | ||
{ | ||
"name": "constant.numeric.dec.bzz", | ||
"match": "-?[0-9]*\\.[0-9]+" | ||
}, | ||
{ | ||
"name": "constant.numeric.int.bzz", | ||
"match": "-?[0-9]+" | ||
} | ||
] | ||
}, | ||
"types": { | ||
"patterns": [ | ||
{ | ||
"name": "storage.type.str.bzz", | ||
"match": "str" | ||
}, | ||
{ | ||
"name": "storage.type.dec.bzz", | ||
"match": "dec" | ||
}, | ||
{ | ||
"name": "storage.type.int.bzz", | ||
"match": "int" | ||
} | ||
] | ||
}, | ||
"functionCalls": { | ||
"begin": "([a-zA-Z_][a-zA-Z0-9_]*)\\(", | ||
"end": "\\)", | ||
"beginCaptures": { | ||
"1": { | ||
"name": "entity.name.function" | ||
} | ||
}, | ||
"patterns": [ | ||
{ "include": "#literals" } | ||
] | ||
} | ||
}, | ||
"scopeName": "source.bzz" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## 1.0.0 | ||
### Initial language commit | 2022-02-01 | ||
|
||
* Types & Literals | ||
* `str` uses double quotes "like this" | ||
* `dec` matches decimal numbers | ||
* `int` matches integer numbers | ||
* Arrithmetic operations | ||
* `*` multiplies dec and int | ||
* `/` divides dec and int | ||
* `+` adds dec and int, concatenates with str and any | ||
* `-` subtracts dec and int | ||
* Builtin Functions | ||
* `WRITE` will output its parameters as space separated values to stdout | ||
* `WRITELN` will output its parameters as space separated values to stdout and add the native line terminator | ||
* Comments | ||
* `// ...` creates a line comment | ||
* `/* ... */` creates a block comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.