Home
IDEs Support (IntelliJ Platform) | JetBrains
Submit a request
Community
Sign in
azrdev
Follow
New posts
New posts and comments
Total activity
29
Last activity
September 23, 2017 17:41
Member since
December 23, 2016 10:18
Following
0 users
Followed by
0 users
Votes
15
Subscriptions
3
Activity overview
Posts (2)
Comments (9)
Sort by recent activity
Recent activity
Votes
Created
September 23, 2017 17:41
> You can do something like this: > if (context instanceof MyStrangeFile) { … which does not get fired, even when my CocoFile implements PsiLanguageInjectionHost and my MultiHostInjector.elemen...
Community
IntelliJ IDEA Open API and Plugin Development
Custom Template Language: insert outer language code at any place (not only template fragments)
0 votes
Created
September 11, 2017 13:48
but getLanguagesToInject() is already called separately for each token where I may inject (so in the html case,for each script-tag, probably). Should I circumvent this somehow, aggregate all these ...
Community
IntelliJ IDEA Open API and Plugin Development
Custom Template Language: insert outer language code at any place (not only template fragments)
0 votes
Created
September 11, 2017 13:28
> You could use MultiHostInjector to inject into several places at once. But then you'd need to provide some prefix/suffix "glue" between fragments for the template data tree to be well-formed that...
Community
IntelliJ IDEA Open API and Plugin Development
Custom Template Language: insert outer language code at any place (not only template fragments)
0 votes
Created
September 09, 2017 07:41
I tried again using the LanguageInjector, and indeed with the TemplateDataLanguageMappings I could tell the IDE to handle my fragments as the outer language (configurable in the settings dialog). W...
Community
IntelliJ IDEA Open API and Plugin Development
Custom Template Language: insert outer language code at any place (not only template fragments)
0 votes
Created
September 07, 2017 14:17
> So your language isn't only templating over C++, it supports other languages? Yes. Coco/R is a parser generator, and I'm building support for its "attributed grammar" files, which are some EBNF v...
Community
IntelliJ IDEA Open API and Plugin Development
Custom Template Language: insert outer language code at any place (not only template fragments)
0 votes
Created
September 06, 2017 14:17
Ok, good to know. What would I do to have only a single PSI? extend InjectedFileViewProvider or SingleRootFileViewProvider? And how would I construct the C++ glue in that case? I had tried extendin...
Community
IntelliJ IDEA Open API and Plugin Development
Custom Template Language: insert outer language code at any place (not only template fragments)
0 votes
Created
September 06, 2017 13:31
sorry for the confusion: In Coco code (my first block) everything inside <...> or (. .) is outer language (Java/C++/...). Everything else is Coco code. Thus, the outer language parser would -- wit...
Community
IntelliJ IDEA Open API and Plugin Development
Custom Template Language: insert outer language code at any place (not only template fragments)
0 votes
Created
February 07, 2017 10:58
Patrick, thanks for your explanations & sorry for the delay. Your point about "resolving usages" was already clear to me, seems I was ambiguous when trying to summarize it briefly. Your words about...
Community
IntelliJ IDEA Open API and Plugin Development
Custom Language: References Tutorial
2 votes
Created
December 25, 2016 18:20
Thanks Luke for your hint, I looked into PRs #198 and #452 but I'm not really seeing the relevant parts between all the layers of indirection (the reason why I asked for a tutorial in the first pla...
Community
IntelliJ IDEA Open API and Plugin Development
Custom Language: References Tutorial
0 votes