-
Notifications
You must be signed in to change notification settings - Fork 16
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
4 changed files
with
145 additions
and
103 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
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 |
---|---|---|
@@ -1,32 +1,28 @@ | ||
{ | ||
"comments": { | ||
// symbol used for single line comment. Remove this entry if your language does not support line comments | ||
"lineComment": "//", | ||
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments | ||
"blockComment": [ "/*", "*/" ] | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"] | ||
], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["'", "'"], | ||
["`", "`"] | ||
], | ||
// symbols that that can be used to surround a selection | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["'", "'"], | ||
["`", "`"] | ||
] | ||
"comments": { | ||
"lineComment": "//", | ||
"blockComment": [ "/*", "*/" ] | ||
}, | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"] | ||
], | ||
"autoClosingPairs": [ | ||
{ "open": "{", "close": "}" }, | ||
{ "open": "[", "close": "]" }, | ||
{ "open": "(", "close": ")" }, | ||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }, | ||
{ "open": "\"", "close": "\"", "notIn": ["string"] }, | ||
{ "open": "`", "close": "`", "notIn": ["string", "comment"] }, | ||
{ "open": "/**", "close": " */", "notIn": ["string"] } | ||
], | ||
"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 |
---|---|---|
@@ -1,75 +1,91 @@ | ||
{ | ||
"name": "sublime-babel-vscode", | ||
"displayName": "Sublime Babel", | ||
"description": "Sublime Text's babel-sublime grammar in VS Code.", | ||
"version": "0.2.6", | ||
"publisher": "joshpeng", | ||
"engines": { | ||
"vscode": "^1.5.0" | ||
}, | ||
"categories": [ | ||
"Languages" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/joshpeng/Sublime-Babel-VSCode" | ||
}, | ||
"icon": "images/Babel.png", | ||
"galleryBanner": { | ||
"color": "#f5da55", | ||
"theme": "light" | ||
}, | ||
"license": "MIT", | ||
"contributes": { | ||
"languages": [ | ||
{ | ||
"id": "javascript", | ||
"aliases": [ | ||
"JavaScript (Babel)" | ||
], | ||
"extensions": [ | ||
".js", | ||
".jsx", | ||
".babel", | ||
".es6" | ||
], | ||
"configuration": "./language-configuration.json" | ||
}, | ||
{ | ||
"id": "javascriptreact", | ||
"aliases": [ | ||
"JavaScript React (Babel)" | ||
], | ||
"extensions": [ | ||
".js", | ||
".jsx", | ||
".babel", | ||
".es6" | ||
], | ||
"configuration": "./language-configuration.json" | ||
} | ||
], | ||
"grammars": [ | ||
{ | ||
"language": "javascript", | ||
"scopeName": "source.js", | ||
"path": "./syntaxes/sublime-babel.json", | ||
"embeddedLanguages": { | ||
"meta.tag.jsx": "jsx-tags" | ||
} | ||
}, | ||
{ | ||
"language": "javascriptreact", | ||
"scopeName": "source.js", | ||
"path": "./syntaxes/sublime-babel.json", | ||
"embeddedLanguages": { | ||
"meta.tag.jsx": "jsx-tags" | ||
} | ||
}, | ||
{ | ||
"scopeName": "source.regexp.js", | ||
"path": "./syntaxes/regex.json" | ||
} | ||
] | ||
} | ||
"name": "sublime-babel-vscode", | ||
"displayName": "Sublime Babel", | ||
"description": "Sublime Text's babel-sublime grammar in VS Code.", | ||
"version": "0.2.7", | ||
"publisher": "joshpeng", | ||
"engines": { | ||
"vscode": "^1.5.0" | ||
}, | ||
"categories": [ | ||
"Languages" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/joshpeng/Sublime-Babel-VSCode" | ||
}, | ||
"icon": "images/Babel.png", | ||
"galleryBanner": { | ||
"color": "#f5da55", | ||
"theme": "light" | ||
}, | ||
"license": "MIT", | ||
"contributes": { | ||
"languages": [ | ||
{ | ||
"id": "javascript", | ||
"aliases": [ | ||
"JavaScript (Babel)" | ||
], | ||
"extensions": [ | ||
".js", | ||
".jsx", | ||
".babel", | ||
".es6" | ||
], | ||
"configuration": "./language-configuration.json" | ||
}, | ||
{ | ||
"id": "javascriptreact", | ||
"aliases": [ | ||
"JavaScript React (Babel)" | ||
], | ||
"extensions": [ | ||
".js", | ||
".jsx", | ||
".babel", | ||
".es6" | ||
], | ||
"configuration": "./language-configuration.json" | ||
}, | ||
{ | ||
"id": "jsx-tags", | ||
"aliases": [], | ||
"configuration": "./tags-language-configuration.json" | ||
} | ||
], | ||
"grammars": [ | ||
{ | ||
"language": "javascript", | ||
"scopeName": "source.js", | ||
"path": "./syntaxes/sublime-babel.json", | ||
"embeddedLanguages": { | ||
"meta.jsx.js": "jsx-tags", | ||
"meta.tag.jsx": "jsx-tags", | ||
"meta.tag.js": "jsx-tags", | ||
"meta.tag.without-attributes.js": "jsx-tags" | ||
} | ||
}, | ||
{ | ||
"language": "javascriptreact", | ||
"scopeName": "source.js", | ||
"path": "./syntaxes/sublime-babel.json", | ||
"embeddedLanguages": { | ||
"meta.jsx.js": "jsx-tags", | ||
"meta.tag.jsx": "jsx-tags", | ||
"meta.tag.js": "jsx-tags", | ||
"meta.tag.without-attributes.js": "jsx-tags" | ||
} | ||
}, | ||
{ | ||
"scopeName": "source.regexp.js", | ||
"path": "./syntaxes/regex.json" | ||
} | ||
] | ||
}, | ||
"__metadata": { | ||
"id": "b864db6b-8147-4ff8-b05a-f7c906c91f02", | ||
"publisherId": "5301c829-08a8-4505-a5a0-c623ee1041cb", | ||
"publisherDisplayName": "Josh Peng" | ||
} | ||
} |
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,27 @@ | ||
{ | ||
"comments": { | ||
"blockComment": [ "{/*", "*/}" ] | ||
}, | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["<", ">"] | ||
], | ||
"autoClosingPairs": [ | ||
{ "open": "{", "close": "}" }, | ||
{ "open": "[", "close": "]" }, | ||
{ "open": "(", "close": ")" }, | ||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }, | ||
{ "open": "\"", "close": "\"", "notIn": ["string"] }, | ||
{ "open": "/**", "close": " */", "notIn": ["string"] } | ||
], | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["<", ">"], | ||
["'", "'"], | ||
["\"", "\""] | ||
] | ||
} |