Skip to content

Experiments for language injection support for VADL - #5

Draft
rascmatt wants to merge 1 commit into
masterfrom
vadl-lang-injection
Draft

Experiments for language injection support for VADL#5
rascmatt wants to merge 1 commit into
masterfrom
vadl-lang-injection

Conversation

@rascmatt

@rascmatt rascmatt commented Mar 5, 2026

Copy link
Copy Markdown

@flofriday

Here's the current/final state of my experiments to support language injection for VADL. Feel free to modify, or abandon the PR.

Fyi if you're interested, I invited you to the plugin repo where I used the Coco/R generated scanner to integrate IntelliJ syntax highlighting & language injections: https://github.com/rascmatt/tifl-plugin


Originally I thought that adding the VadlLanguage and VadlFileType would be enough, but it turns out that language injection seems to only work in combination with an implementation of IntelliJ's PSI framework.

I also tried to comply by providing a 'dummy' lexer & parser, and even tried a custom language injector, but without success. Intellj just ignores the LSP in these scenarios.

@rascmatt
rascmatt requested review from flofriday and removed request for flofriday March 5, 2026 06:18
@flofriday

Copy link
Copy Markdown
Collaborator

Awesome 👍
I want to try this in combination with also bundling the Textmate grammar because we already have a pretty functioning grammar there 🤔

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

Successfully merging this pull request may close these issues.

2 participants