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

Using d.tmbundle with IntelliJ IDEA #16

Open
andre2007 opened this issue Jul 25, 2019 · 4 comments
Open

Using d.tmbundle with IntelliJ IDEA #16

andre2007 opened this issue Jul 25, 2019 · 4 comments

Comments

@andre2007
Copy link

Just released version of IntelliJ IDEA (Community 2019.2) has support for TextMate bundles.

I am not 100% what is the expected syntax highlighting result but assumes there are some issues. E.g.

image

Are the issues related to IntelliJ and I should create a ticket for them or are the issues related to this repository?

@jacob-carlborg
Copy link
Contributor

I don’t have access to a computer right now, but I’m pretty sure it looks a lot better in TextMate.

@andre2007
Copy link
Author

Issue created for IntelliJ IDEA
https://youtrack.jetbrains.com/issue/IDEA-219012

@jacob-carlborg
Copy link
Contributor

If you don’t have access to TextMate you can look at how GitHub highlights D code. It also uses this bundle.

@andre2007
Copy link
Author

andre2007 commented Aug 5, 2019

@jacob-carlborg
I do not know whether you have access to the IntelliJ issue. Here is the latest answer for my question whether Named Captures can be added to IntelliJ:

...as far as I know the library we use (https://github.com/jruby/joni) doesn't support retrieving named groups. Also supporting named captures will increase memory footprint on our side. Additionally there is the native support of D: https://plugins.jetbrains.com/plugin/8115-d-language. Considering this, it doesn't look sensible to me to support it right now.

For me, having a textmate bundle makes sense for supporting rare language and for supporting it in as many editors as possible. From what I see, highlighting in Atom (https://github.com/atom/node-oniguruma/blob/master/src/onig-scanner.cc#L114) and VSCode (https://github.com/NeekSandhu/onigasm/blob/master/src/OnigScanner.ts#L24) also don't support named captures. So if you really want your bundle to be supported by the many editors, I'd avoid using named captures.

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

No branches or pull requests

2 participants