Skip to content

Implement ~BASH sigil highlighting#522

Open
dbernheisel wants to merge 1 commit intoelixir-lsp:masterfrom
dbernheisel:dbern/bash-injections
Open

Implement ~BASH sigil highlighting#522
dbernheisel wants to merge 1 commit intoelixir-lsp:masterfrom
dbernheisel:dbern/bash-injections

Conversation

@dbernheisel
Copy link

@dbernheisel dbernheisel commented Mar 13, 2026

This adds ~BASH syntax highlighting provided by the https://hexdocs.pm/bash package. There wasn't a great way to test this, so I had to get VSCode's way of testing grammars setup as well, which is most of the change here.

VSCode ships with shellscript grammar, so this shouldn't require any external dependencies. However given textmate's limitations, there's a number of shellscript tokens it cannot highlight without breaking things for the rest of the elixir file, so this limits it a subset (although still helpful) of highlights.

Most of the lines in elixir.json are repeated to support all the different fences around sigils, just like regex, but they're all the same.

I'm not a VSCode user, so feel free to give it a thorough review.

image

Reopened #521

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.

1 participant