Skip to content

Commit

Permalink
Merge pull request #1 from relogiclabs/develop
Browse files Browse the repository at this point in the history
Add JSchema Syntax Highlighting
  • Loading branch information
zhossain-info authored Apr 22, 2024
2 parents d007d7a + 86c5937 commit a57d97e
Show file tree
Hide file tree
Showing 9 changed files with 480 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode
.idea
node_modules
*.vsix
5 changes: 5 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.vscode/**
.idea/**
.vscode-test/**
test/**
.gitignore
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# JSchema-VSCode
JSchema Support for Visual Studio Code
# JSchema - The Customizable JSON Schema
JSchema, a new JSON Schema, prioritizes simplicity, conciseness, and readability, making it intuitive and accessible without the need for extensive prior knowledge. It offers efficient read-write facilities, precise JSON document definition through various data types and functions, and extensibility to meet modern web service diverse requirements. To start your journey with JSchema library, please consult the documentation available for [C#](https://relogiclabs.github.io/JSchema-DotNet) and [Java](https://relogiclabs.github.io/JSchema-Java/articles/introduction).

## Features
This extension provides syntax highlighting support for JSchema and its supported file type `.jscm`

## Example
![Syntax Highlighting](./images/syntax-highlighting.png)

## Release Notes

* Initial release

**Enjoy!**
Binary file added images/jschema-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/syntax-highlighting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions jschema-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"comments": {
"lineComment": "//",
"blockComment": [ "/*", "*/" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
]
}
40 changes: 40 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "jschema",
"displayName": "JSchema",
"description": "JSchema support for Visual Studio Code",
"publisher": "RelogicLabs",
"version": "0.5.0",
"license": "AGPL-3.0",
"icon": "images/jschema-icon.png",
"repository": {
"type": "git",
"url": "https://github.com/relogiclabs/JSchema-VSCode"
},
"engines": {
"vscode": "^1.88.0"
},
"categories": [
"Other"
],
"keywords": [
"json schema",
"schema",
"json",
"validation",
"assert",
"test"
],
"contributes": {
"languages": [{
"id": "jschema",
"aliases": ["JSchema", "jschema"],
"extensions": [".jscm"],
"configuration": "./jschema-configuration.json"
}],
"grammars": [{
"language": "jschema",
"scopeName": "source.jschema",
"path": "./syntaxes/jschema.tmGrammar.json"
}]
}
}
Loading

0 comments on commit a57d97e

Please sign in to comment.