Skip to content

Commit a6924aa

Browse files
committed
init commit
0 parents  commit a6924aa

10 files changed

Lines changed: 567 additions & 0 deletions

File tree

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = tab
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
# The indent size used in the `package.json` file cannot be changed
13+
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
14+
[{.travis.yml,npm-shrinkwrap.json,package.json}]
15+
indent_style = space
16+
indent_size = 2

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Logs
2+
logs/
3+
*.log
4+
npm-debug.log*
5+
6+
# IDE & editors
7+
.idea
8+
.vscode
9+
10+
# Dependency directory
11+
node_modules/
12+
13+
# Compiled and tempory files
14+
.tmp/
15+
out/
16+
*.vsix

.vscodeignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.vscode/**
2+
typings/**
3+
test/**
4+
lib/**/*.spec.js
5+
.editorconfig
6+
.gitignore
7+
.travis.yml
8+
jsconfig.json

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Denis Malinochkin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# vscode-jsona
2+
3+
> This extension adds syntax highlighting of JSONA files in VS Code.
4+
5+
## Colorization
6+
7+
![JSONA syntax in VS Code](https://marketplace.visualstudio.com/items?itemName=sigoden.vscode-jsona)
8+
9+
## Usage
10+
11+
### Install the extension in VS Code
12+
13+
* Open the command palette using <kbd>Ctrl+P</kbd>.
14+
* Type `ext install jsona` in the command palette.
15+
16+
### Select **JSONA** as a language
17+
18+
* On the bottom-right corner, click on the select language mode button, if you have created a new file it should display Plain Text.
19+
* Select **JSONA** in the list of languages.
20+
* Alternatively, saving the file with a `.jsona` extension, will allow VS Code to understand that it is a JSONA file, and automatically select the language correctly.
21+
22+
### Supported features
23+
24+
* Syntax highlight
25+
26+
### Supported filetypes
27+
28+
* `.jsona`
29+
30+
## Contributing
31+
32+
> These simple rules will help me to solve your problem.
33+
34+
* Check the **Issues** and **Pull requests** sections for duplicates of your question or path.
35+
* Please, use GitHub emotions.
36+
* If you want create **Issue**:
37+
* Specify the version of your editor and used theme.
38+
* Detailed description of your problem:
39+
* Description
40+
* Code sample
41+
* Screenshot
42+
* If you want create **Pull request**:
43+
* Fork this repository and clone it to your machine.
44+
* Open folder contains this extension in VS Code.
45+
* Press <kbd>F5</kbd>.
46+
* Make your changes and send a PR.
47+
48+
## License
49+
50+
This software is released under the terms of the MIT license.

icon.png

6.22 KB
Loading

jsona.configuration.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": [ "/*", "*/" ]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"]
9+
],
10+
"autoClosingPairs": [
11+
{ "open": "{", "close": "}", "notIn": ["string"] },
12+
{ "open": "[", "close": "]", "notIn": ["string"] },
13+
{ "open": "(", "close": ")", "notIn": ["string"] },
14+
{ "open": "'", "close": "'", "notIn": ["string"] },
15+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
16+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] }
17+
]
18+
}

package.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "vscode-jsona",
3+
"displayName": "JSON5 syntax",
4+
"description": "Adds syntax highlighting of JSONA files",
5+
"version": "0.1.0",
6+
"publisher": "sigoden",
7+
"license": "MIT",
8+
"engines": {
9+
"vscode": "^1.3.0"
10+
},
11+
"icon": "icon.png",
12+
"homepage": "https://github.com/sigoden/vscode-jsona/blob/master/README.md",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/sigoden/vscode-jsona"
16+
},
17+
"keywords": [
18+
"jsona",
19+
"syntax",
20+
"highlight"
21+
],
22+
"categories": [
23+
"Programming Languages"
24+
],
25+
"contributes": {
26+
"languages": [{
27+
"id": "jsona",
28+
"aliases": ["JSONA", "jsona"],
29+
"extensions": [".jsona"],
30+
"configuration": "./jsona.configuration.json"
31+
}],
32+
"grammars": [{
33+
"language": "jsona",
34+
"scopeName": "source.jsona",
35+
"path": "./syntaxes/jsona.json"
36+
}]
37+
}
38+
}

0 commit comments

Comments
 (0)