![9fd26bc9a4dc141d198050a062a4cffc.png](https://img-blog.csdnimg.cn/img_convert/9fd26bc9a4dc141d198050a062a4cffc.png)
ARC 语言的解析脚本以及高亮插件已上线
解析脚本: ArcHive
高亮插件: VScode Marketplace
ARC 可以渐进的从 JSON 过渡
我们以如下 json
为例, 看看如何用 arc
改写增强可读性.
{
"name": "vscode-arc",
"displayName": "Arc Language Support",
"description": "Highlight and formatter for Arc Readable Configiration",
"repository": {
"type": "git",
"url": "https://github.com/GalAster/vscode-arc.git"
},
"engines": {
"vscode": "^1.8.0"
},
"categories": [
"Programming Languages",
"Formatters"
],
"scripts": {
"postinstall": "node ./node_modules/vscode/bin/install && tsc",
"build": "yarn lint && ts-node syntax/build.ts",
"pack": "yarn build && vsce package",
"lint": "tslint **/*.ts --fix"
},
"contributes": {
"languages": [
{
"id": "arc",
"aliases": [
"ARC"
],
"extensions": [
".arc"
],
"filenames": [],
"mimetypes": [
"text/x-arc"
],
"configuration": "./syntax/arc.configuration.json"
}
],
"grammars": [
{
"language": "arc",
"scopeName": "source.arc",
"path": "./syntax/arc.tmLanguage.json"
},
{
"scopeName": "markdown.arc.codeblock",
"path": "./syntax/arc.markdown.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.em