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

Add support for javascriptreact language #1906

Merged
merged 2 commits into from
Apr 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add support for jsx files
aminehmida committed Mar 31, 2022
commit f0e28c1e6a5a7dd9c8ec05b7646d4ef5e2cdbf23
15 changes: 1 addition & 14 deletions languages.toml
Original file line number Diff line number Diff line change
@@ -266,7 +266,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "0fa917a
name = "javascript"
scope = "source.js"
injection-regex = "^(js|javascript)$"
file-types = ["js", "mjs"]
file-types = ["js", "jsx", "mjs"]
shebangs = ["node"]
roots = []
comment-token = "//"
@@ -319,19 +319,6 @@ indent = { tab-width = 2, unit = " " }
name = "tsx"
source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "3e897ea5925f037cfae2e551f8e6b12eec2a201a", subpath = "tsx" }

[[language]]
name = "jsx"
scope = "source.jsx"
injection-regex = "^(jsx)$"
file-types = ["jsx"]
roots = []
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "javascriptreact" }
indent = { tab-width = 2, unit = " " }

[[grammar]]
name = "jsx"
source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev = "3e897ea5925f037cfae2e551f8e6b12eec2a201a", subpath = "jsx" }

[[language]]
name = "css"
scope = "source.css"