aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Toohey2022-05-04 01:55:40 +0000
committerGitHub2022-05-04 01:55:40 +0000
commit25d128b5b3f173e3aa8b455194d128af35cc2a27 (patch)
tree9687894712e9929107fc8de67f354ec2e6bfbe8d
parente529ca1b92ac03fe1e4386756ee5811212ce96bd (diff)
feat(languages): detect cjs as javascript (#2387)
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 10f8f844..35438758 100644
--- a/languages.toml
+++ b/languages.toml
@@ -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 = "//"