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

solution for multi-language files #33

Open
shackra opened this issue Mar 26, 2020 · 2 comments
Open

solution for multi-language files #33

shackra opened this issue Mar 26, 2020 · 2 comments
Labels
enhancement New feature or request unexplored Need more research

Comments

@shackra
Copy link
Collaborator

shackra commented Mar 26, 2020

@yyoncho noted that in Emacs sometimes a mapping of major mode and language is not as straightforward as N -> 1, but rather N -> N, that is to say that some major modes have to handle different languages at once, like web-mode which handles HTML, CSS, TypeScript, JavaScript and so on.

Thus, is required that emacs-tree-sitter handles this kind of edge cases gracefully.

@ubolonton ubolonton pinned this issue Oct 19, 2020
@shackra shackra added enhancement New feature or request unexplored Need more research labels Dec 18, 2020
@Abdillah
Copy link

@laduke
Copy link

laduke commented Oct 7, 2022

Anyone know how to do this?

"Just" need to tell tree-sitter to switch from js to html inside of

html``

html`<h1>hello</h1>`

Heres a vscode thing that does it.
https://marketplace.visualstudio.com/items?itemName=runem.lit-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request unexplored Need more research
Projects
None yet
Development

No branches or pull requests

3 participants