Skip to content

Commit

Permalink
Added symbol outline provider
Browse files Browse the repository at this point in the history
Added basic indentation rules
Added `.esp` to file extensions
  • Loading branch information
ghaberek committed May 21, 2020
1 parent 0e1580a commit 1f7b5bb
Show file tree
Hide file tree
Showing 14 changed files with 2,473 additions and 30 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/class-name-casing": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode-test/**
vsc-extension-quickstart.md
vscode-euphoria-*.vsix
node_modules
out
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
20 changes: 12 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
]
}
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"node_modules": true,
"out": true
},
"search.exclude": {
"node_modules": true,
"out": true
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 OpenEuphoria Group

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.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,21 @@ Euphoria language support and debugging for Visual Studio Code

## Releases

### 1.2.0

- Added symbol outline provider
- Added basic indentation rules
- Added `.esp` to file extensions

### 1.1.1

Fixed broken line in `package.json`
- Fixed broken line in `package.json`

### 1.1.0

Added a bunch of snippets (see [snippets](snippets/README.md))
- Added a bunch of snippets (see [snippets](snippets/README.md))

### 1.0.0

Initial release
- Initial release

14 changes: 11 additions & 3 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
{
// Describes how comments for a language work.
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
// The block comment character pair, like /* block comment */
"lineComment": "--",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
// The line comment token, like // this is a comment
"blockComment": [ "/*", "*/" ]
},
// symbols used as brackets
// The language's brackets. This configuration implicitly affects pressing Enter around these brackets.
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
// Describes indentation rules for a language.
"indentationRules": {
// If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).
"increaseIndentPattern": "^\\s*(public|export|global|ovderride|deprecate|procedure|function|type|if|for|while|switch|case)",
// If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).
"decreaseIndentPattern": "^\\s*end(procedure|function|type|if|for|while|switch)",
},
// symbols that are auto closed when typing
"autoClosingPairs": [
{ "open": "{", "close": "}" },
Expand Down
Loading

0 comments on commit 1f7b5bb

Please sign in to comment.