-
Notifications
You must be signed in to change notification settings - Fork 203
Reuse Grammars from Sublime-TypeScript #675
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
Comments
@blakeembrey, I think we should ask typescript team. Maybe they have any plans to export/support typescript grammar as any external module. |
@stepancar I think it's worth investigating from the Atom side first too. If we can just convert it with a script, there's no need for a separate module or special support. As for them publishing an external module, I don't have any ideas on the format of how that would look - I haven't had enough exposure to various IDE language definitions to know if it's simple to publish a common denominator (or maybe generate each of them?). |
@blakeembrey i created issue |
🎉 It's done. We should be investigating this soon, would be easy enough to use a script to convert into the format Atom uses. It looks like they're going to add a testing framework too, so that sounds like a huge win against maintaining the grammar here. |
@blakeembrey As far as I see, those grammar files are just imported from Sublime Text package, so it's not a "real" TS grammar from MS. See microsoft/TypeScript-TmLanguage#1 We indeed should track the progress there, but I guess it's too early to integrate it here. |
@blakeembrey I arrived here after indicating interest in one of the separate tickets (#707) prior to it's collation here by the recent mass assignment of 'up-for-grabs' labels. I read from your comment #675 (comment) that you are following the 'copy via script' rather than 'investigating from Atom first principles' option on this - did I understand that correctly? Does that mean that these are or are not still 'up-for-grabs' style issues? |
@quadrophobiac Absolutely up for grabs, if you want to give it a shot I'll review the PR. I'm not currently working on this. Not sure what you meant copying rather than investigating Atom first principles? |
Hey, I was referring to the chain of correspondence in previously when you said
and then
As I understand it the task is to create an Atom native grammar rather than a repurposed sublime grammar? You also mentioned
I'm inferring that this is a test specification for .ts coming from MS - is that right? I'll get a dev instance of the repo up and running in the meantime |
@quadrophobiac All the grammar will come from the TypeScript sublime text side, we should only be converting it. The Atom side comment is exactly the same now as before, it's not a universal grammar so there's still conversion we need to do. In the original context, it was in response to opening an issue and moving everything prematurely (before we know what we're doing with it) but that's already happened now. |
Ah ok got it! |
From #672, we should investigate if a simple npm script can be utilized to copy and repackage the grammars from Sublime.
edits by @basarat:
We have very little custom work ...
atom-typescript/grammars/typescript.cson
Lines 12 to 80 in 729b552
Angular2 Decorator Template Highlighting #798
The text was updated successfully, but these errors were encountered: