feat(languages): detect cjs as javascript (#2387)

This commit is contained in:
Matthew Toohey 2022-05-03 21:55:40 -04:00 committed by GitHub
parent e529ca1b92
commit 25d128b5b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,7 +303,7 @@ source = { git = "https://github.com/omertuc/tree-sitter-go-work", rev = "6dd9dd
name = "javascript"
scope = "source.js"
injection-regex = "^(js|javascript)$"
file-types = ["js", "jsx", "mjs"]
file-types = ["js", "jsx", "mjs", "cjs"]
shebangs = ["node"]
roots = []
comment-token = "//"