remove `^$` from injection regexs

change-detection
Timothy DeHerrera 2 years ago committed by Michael Davis
parent 665e27ff9d
commit 5ed751c67d

@ -331,7 +331,7 @@ source = { git = "https://github.com/omertuc/tree-sitter-go-work", rev = "6dd9dd
[[language]] [[language]]
name = "javascript" name = "javascript"
scope = "source.js" scope = "source.js"
injection-regex = "^(js|javascript)$" injection-regex = "(js|javascript)"
file-types = ["js", "jsx", "mjs", "cjs"] file-types = ["js", "jsx", "mjs", "cjs"]
shebangs = ["node"] shebangs = ["node"]
roots = [] roots = []
@ -370,7 +370,7 @@ grammar = "javascript"
[[language]] [[language]]
name = "typescript" name = "typescript"
scope = "source.ts" scope = "source.ts"
injection-regex = "^(ts|typescript)$" injection-regex = "(ts|typescript)"
file-types = ["ts"] file-types = ["ts"]
shebangs = [] shebangs = []
roots = [] roots = []
@ -385,7 +385,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev =
[[language]] [[language]]
name = "tsx" name = "tsx"
scope = "source.tsx" scope = "source.tsx"
injection-regex = "^(tsx)$" # |typescript injection-regex = "(tsx)" # |typescript
file-types = ["tsx"] file-types = ["tsx"]
roots = [] roots = []
# TODO: highlights-params # TODO: highlights-params
@ -1183,7 +1183,7 @@ source = { git = "https://github.com/milisims/tree-sitter-org", rev = "698bb1a34
[[language]] [[language]]
name = "solidity" name = "solidity"
scope = "source.sol" scope = "source.sol"
injection-regex = "^(sol|solidity)$" injection-regex = "(sol|solidity)"
file-types = ["sol"] file-types = ["sol"]
roots = [] roots = []
comment-token = "//" comment-token = "//"
@ -1400,7 +1400,7 @@ source = { git = "https://github.com/archseer/tree-sitter-cairo", rev = "5155c6e
[[language]] [[language]]
name = "cpon" name = "cpon"
scope = "scope.cpon" scope = "scope.cpon"
injection-regex = "^cpon$" injection-regex = "cpon"
file-types = ["cpon", "cp"] file-types = ["cpon", "cp"]
roots = [] roots = []
auto-format = true auto-format = true

Loading…
Cancel
Save