@@ -112,7 +112,7 @@ function process_args_in_batches() {
112112function ls-files {
113113 language=" $1 " && shift ;
114114 # Copied file patterns from
115- # https://github.com/github-linguist/linguist/blob/559a6426942abcae16b6d6b328147476432bf6cb /lib/linguist/languages.yml
115+ # https://github.com/github-linguist/linguist/blob/main /lib/linguist/languages.yml
116116 # using the ./mirror_linguist_languages.sh tool to transform to Bash code
117117 case " $language " in
118118 ' C' ) patterns=(' *.c' ' *.cats' ' *.h' ' *.idc' ) ;;
@@ -123,6 +123,8 @@ function ls-files {
123123 ' GraphQL' ) patterns=(' *.graphql' ' *.gql' ' *.graphqls' ) ;;
124124 ' HTML' ) patterns=(' *.html' ' *.hta' ' *.htm' ' *.html.hl' ' *.inc' ' *.xht' ' *.xhtml' ) ;;
125125 ' JSON' ) patterns=(' .all-contributorsrc' ' .arcconfig' ' .auto-changelog' ' .c8rc' ' .htmlhintrc' ' .imgbotconfig' ' .nycrc' ' .tern-config' ' .tern-project' ' .watchmanconfig' ' Pipfile.lock' ' composer.lock' ' deno.lock' ' flake.lock' ' mcmod.info' ' *.json' ' *.4DForm' ' *.4DProject' ' *.avsc' ' *.geojson' ' *.gltf' ' *.har' ' *.ice' ' *.JSON-tmLanguage' ' *.jsonl' ' *.mcmeta' ' *.tfstate' ' *.tfstate.backup' ' *.topojson' ' *.webapp' ' *.webmanifest' ' *.yy' ' *.yyp' ) ;;
126+ ' JSON with Comments' ) patterns=( ' *.jsonc' ' *.code-snippets' ' *.code-workspace' ' *.sublime-build' ' *.sublime-commands' ' *.sublime-completions' ' *.sublime-keymap' ' *.sublime-macro' ' *.sublime-menu' ' *.sublime-mousemap' ' *.sublime-project' ' *.sublime-settings' ' *.sublime-theme' ' *.sublime-workspace' ' *.sublime_metrics' ' *.sublime_session' ' .babelrc' ' .devcontainer.json' ' .eslintrc.json' ' .jscsrc' ' .jshintrc' ' .jslintrc' ' .swcrc' ' api-extractor.json' ' devcontainer.json' ' jsconfig.json' ' language-configuration.json' ' tsconfig.json' ' tslint.json' ) ;;
127+ ' JSON5' ) patterns=(' *.json5' ) ;;
126128 ' Java' ) patterns=(' *.java' ' *.jav' ' *.jsh' ) ;;
127129 ' JavaScript' ) patterns=(' Jakefile' ' *.js' ' *._js' ' *.bones' ' *.cjs' ' *.es' ' *.es6' ' *.frag' ' *.gs' ' *.jake' ' *.javascript' ' *.jsb' ' *.jscad' ' *.jsfl' ' *.jslib' ' *.jsm' ' *.jspre' ' *.jss' ' *.jsx' ' *.mjs' ' *.njs' ' *.pac' ' *.sjs' ' *.ssjs' ' *.xsjs' ' *.xsjslib' ) ;;
128130 ' Jsonnet' ) patterns=(' *.jsonnet' ' *.libsonnet' ) ;;
@@ -302,7 +304,7 @@ if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
302304
303305 # Handle additional languages for JavaScript and CSS
304306 if [[ " $lang " == " JavaScript" ]]; then
305- for sublang in " JSON" " TSX" " TypeScript" " Vue" ; do
307+ for sublang in " JSON" " JSON5 " " JSON with Comments " " TSX" " TypeScript" " Vue" ; do
306308 process_args_in_batches " $sublang " " $bin " " ${flags:- " " } " " $@ "
307309 done
308310 fi
0 commit comments