Skip to content

JSX/TSX Highlight/Comment being Broken #11549

Answered by gabydd
LePichu asked this question in Troubleshooting
Discussion options

You must be logged in to vote

there are seperate queries and a different grammar for tsx:

helix/languages.toml

Lines 790 to 803 in 38e6fcd

[[language]]
name = "tsx"
scope = "source.tsx"
injection-regex = "(tsx)" # |typescript
language-id = "typescriptreact"
file-types = ["tsx"]
comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server" ]
indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "tsx"
source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "b1bf4825d9eaa0f3bdeb1e52f099533328acfbdf", subpath = "tsx" }
in your languages.toml you are caus…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@davikayxx

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LePichu
Comment options

Answer selected by LePichu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #11539 on August 21, 2024 19:14.