Skip to content

Commit

Permalink
Add .cjs (common javascript) to javascript syntax definition (#3539)
Browse files Browse the repository at this point in the history
  • Loading branch information
med-ab authored Nov 20, 2024
1 parent b881bf5 commit 56c1f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/syntax/javascript.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
filetype: javascript

detect:
filename: "(\\.js$|\\.es[5678]?$|\\.mjs$)"
filename: "(\\.(m|c)?js$|\\.es[5678]?$)"
header: "^#!.*/(env +)?node( |$)"

rules:
Expand Down

0 comments on commit 56c1f75

Please sign in to comment.