Skip to content

Commit

Permalink
Update readme and changelog for v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
joshpeng committed Jan 10, 2017
1 parent e523e76 commit 15e8ff7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog
v.NEXT
v0.2.4
- Fixed [#1](https://github.com/joshpeng/Sublime-Babel-VSCode/issues/1), [#4](https://github.com/joshpeng/Sublime-Babel-VSCode/issues/4). ES6 arrow functions colored properly
- Updated for VSCode 1.9's new token flattening

v0.2.3
- Fixed README typos
Expand Down
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# Sublime Babel [![VS Code marketplace button](http://vsmarketplacebadge.apphb.com/installs/joshpeng.sublime-babel-vscode.svg)](https://marketplace.visualstudio.com/items?itemName=joshpeng.sublime-babel-vscode)
When using your favorite theme, Visual Studio Code doesn't always display syntax highlight colors as expected. This extension tries to mimic Sublime's [babel-sublime](https://packagecontrol.io/packages/Babel) package as much as possible to address poor coloring.
When using your favorite theme, Visual Studio Code doesn't always display syntax highlight colors as expected. This extension tries to mimic Sublime Text's [babel-sublime](https://packagecontrol.io/packages/Babel) package as much as possible to address poor coloring.

Other JS grammars are currently either incorrect or incomplete.

| Grammar | Description |
| ---------------------------------------- | ---------------------------------------- |
| [Sublime Babel](https://marketplace.visualstudio.com/items?itemName=joshpeng.sublime-babel-vscode) | Syntax highlighting working with most preexisting .tmThemes |
| [JavaScript Atom Grammar](https://marketplace.visualstudio.com/items?itemName=ms-vscode.js-atom-grammar) | Immature JSX support |
| [Babel ES6/ES7](https://marketplace.visualstudio.com/items?itemName=dzannotti.vscode-babel-coloring) | Incorrect colors in many scenarios due to missing or incorrect scopes |
| [Latest TypeScript and JavaScript Grammar](https://marketplace.visualstudio.com/items?itemName=ms-vscode.typescript-javascript-grammar) | Incorrect colors in many scenarios due to non-standard scoping |

**Note**: VS Code may interpret scopes slightly differently than Sublime so it won't always be 100% the same. You may need to tweak your theme's scoping a little bit to match it exactly. Hopefully it is close enough though out-of-the-box for the majority of preexisting tmThemes.
With VS Code 1.9.0, a new token flattenizer will be implemented that finally allows VS Code to properly follow TextMate grammar rules. This significantly improves syntax highlighting with preexisting tmThemes from other editors. However, the default JavaScript grammar still needs some work to match Sublime Text. This extension solves that for you.



Expand All @@ -32,8 +23,6 @@ For best results, please consider using these optimized themes. Other ported the

[Charcoal Oceanic Next](https://marketplace.visualstudio.com/items?itemName=joshpeng.theme-charcoal-oceanicnext)

[Tomorrow Kit](https://marketplace.visualstudio.com/items?itemName=joshpeng.theme-tomorrowkit-sublime)



## Comparisons
Expand All @@ -46,7 +35,7 @@ Here is a quick example of the improved grammar compared against the popular [Ba

![React](https://raw.githubusercontent.com/joshpeng/Sublime-Babel-VSCode/master/images/react.png)


**Note:** These screenshots and case scenarios are old, but the premise is still valid. Other grammars do not fully tokenize like how Sublime does it.

## Changelog
Please see [here](https://github.com/joshpeng/Sublime-Babel-VSCode/blob/master/CHANGELOG.md).
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sublime-babel-vscode",
"displayName": "Sublime Babel",
"description": "Sublime Text's babel-sublime grammar in VS Code.",
"version": "0.2.3",
"version": "0.2.4",
"publisher": "joshpeng",
"engines": {
"vscode": "^1.5.0"
Expand Down

0 comments on commit 15e8ff7

Please sign in to comment.