How to get typescript/tsx/jsx highlighting working? #2180
-
What am I doing wrong here? The injection callback on the |
Beta Was this translation helpful? Give feedback.
Answered by
tonijarjour
Apr 7, 2023
Replies: 1 comment
-
I got it you have to concat the highlight queries like this: HighlightConfiguration::new(
tree_sitter_typescript::language_typescript(),
&format!(
"{}\n{}",
tree_sitter_javascript::HIGHLIGHT_QUERY,
tree_sitter_typescript::HIGHLIGHT_QUERY
),
"",
tree_sitter_typescript::LOCALS_QUERY,
)
.unwrap() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tonijarjour
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got it you have to concat the highlight queries like this: