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

Where are injections / aliases kept? #49

Open
NullVoxPopuli opened this issue Jul 24, 2022 · 3 comments
Open

Where are injections / aliases kept? #49

NullVoxPopuli opened this issue Jul 24, 2022 · 3 comments

Comments

@NullVoxPopuli
Copy link

I noticed that glimmer is highlighted in markdown codefences, but the more limited subset of a language, hbs, is not:
image

where would I add an alias for hbs to use the glimmer highlighting?

@tubbo
Copy link

tubbo commented Sep 8, 2022

I don't see this happen at all. Are you sure you're not running another plugin like inkarkat/vim-SyntaxRange that does this for you?

When I have vim-markdown disabled, so it falls back to tree-sitter, this is what I see:

Screen Shot 2022-09-08 at 9 57 49 AM

With the aforementioned plugins enabled, I get:

Screen Shot 2022-09-08 at 9 58 15 AM

The only reason I don't drop vim-markdown entirely is this project's lack of fenced code block highlighting. :(

@NullVoxPopuli
Copy link
Author

your languages in your screenshots, bash and ruby exist as standalone languages -- as does happen in my screenshot with glimmer -- hbs isn't a language, but a file extension (for a language that has a subset of features compared to glimmer), and I'd like to alias glimmer to hbs so that I don't need to create an hbs grammar

@NullVoxPopuli
Copy link
Author

another example:

```js
export const x = 'no highlight';
```

```javascript
export const x = 'this is highlighted'
```

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