Skip to content
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

Import TextMate (and language-configuration.json) from TextMate/Sublime/Vscode bundle #679

Open
angelozerr opened this issue Jan 30, 2024 · 0 comments

Comments

@angelozerr
Copy link
Contributor

angelozerr commented Jan 30, 2024

IJ provides a nice import for TextMate grammar file coming from:

  • TextMate bundle
  • Sublime bundle
  • VScode package.json

See entry point from https://github.com/JetBrains/intellij-community/blob/9ad1c858cc67a30002096dbe13bc1cf42c52b497/plugins/textmate/src/org/jetbrains/plugins/textmate/TextMateServiceImpl.java#L240

For the case of Vscode package.json, you need just to select a package.json and it import the TextMate grammar + language-configuration.json.

Takes a sample with Go. You need just to select the local file package.json https://github.com/golang/vscode-go/blob/89b02f46268ff6b0197cc780b5f3d02ba36f1cc7/extension/package.json

and after that, it loads:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants