Add gjs to Javascript lang firstLine

pull/4556/head
Matt Mundell 8 months ago
parent c49fdf9f0c
commit 72b88392b1

@ -11,7 +11,7 @@ declare var require: any;
registerLanguage({ registerLanguage({
id: 'javascript', id: 'javascript',
extensions: ['.js', '.es6', '.jsx', '.mjs', '.cjs'], extensions: ['.js', '.es6', '.jsx', '.mjs', '.cjs'],
firstLine: '^#!.*\\bnode', firstLine: "^#!.*\\b(node|gjs)",
filenames: ['jakefile'], filenames: ['jakefile'],
aliases: ['JavaScript', 'javascript', 'js'], aliases: ['JavaScript', 'javascript', 'js'],
mimetypes: ['text/javascript'], mimetypes: ['text/javascript'],

Loading…
Cancel
Save