Skip to content

Commit

Permalink
Add gjs to Javascript lang firstLine
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell committed Jun 11, 2024
1 parent c49fdf9 commit 72b8839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic-languages/javascript/javascript.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare var require: any;
registerLanguage({
id: 'javascript',
extensions: ['.js', '.es6', '.jsx', '.mjs', '.cjs'],
firstLine: '^#!.*\\bnode',
firstLine: "^#!.*\\b(node|gjs)",
filenames: ['jakefile'],
aliases: ['JavaScript', 'javascript', 'js'],
mimetypes: ['text/javascript'],
Expand Down

0 comments on commit 72b8839

Please sign in to comment.