-
Notifications
You must be signed in to change notification settings - Fork 203
updated grammar for tsx #672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@basarat, yesterday i fixed TypeStrong#666, but it breaks this grammar supports typescript (shameless copy [from sublime-typescript](https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/TypeScriptReact.YAML-tmLanguage) it's better then babel grammar because for typescript :)
@stepancar awesome ... I've been meaning to be lazy and just let MS handle the grammar... how are you doing the conversion ... can you document the steps so I can keep it updated? 🌹 |
document the steps? I just downloaded sublime-typescript grammar , then converted to json usung this tool then converted to cson using thist tool then just puted to atom-typescript, then smiled)) |
If you generated one from Sublime, why not just do the other too? Or has there been a lot of custom improvements over Sublime? I'm wondering, also, if someone could bring this into a common core for grammars in TypeScript to avoid this kind of duplicate work. |
Agreed ... we have very little custom work ... and I moved that up the top : atom-typescript/grammars/typescript.cson Lines 12 to 80 in 729b552
But I don't want to move |
@basarat, |
fix for [yesterday changes](TypeStrong#672) and for [this issue](TypeStrong#673)
&
Did MS have plans to handle grammar? |
Not that I know of, but we can always ask. If converting is as simple as a basic transform, then we can probably look at automating the custom patches and contributing syntax highlighting patches upstream instead - otherwise |
Hello @basarat! Yesterday i fixed #666, but it breaks
this grammar supports typescript (shameless copy from sublime-typescript it's better then babel grammar because for typescript :)
Please, check