Skip to content

Commit 4f76763

Browse files
committed
Extend scopes to cover missing VSCode language IDs
1 parent a7e0a21 commit 4f76763

4 files changed

Lines changed: 56 additions & 44 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1010
----------------------
1111
### Added
1212
- **New icons:** Art Text 4 (`.art4` directories), Bikeshed (`.bs`), dotenv (`.env{,.*}`), Figma (`.figma`), Imgbot (`.imgbotconfig`), Mint (`.mint`), PhotoRec (`.photorec.cfg`), ShellCheck (`.shellcheckrc`), Sponge-powered Mixin (`.mixin{,s}.json`), Windi CSS (`windi.config.{ts,js}`)
13-
- **Support:** Adobe Illustrator (`.aia`), Adobe Photoshop (`.atn`), Appcelerator Titanium (`.tss`), Atom (`.atomignore`), BC (`.bc`, `bc.library`), Checksum lists (`{.,}{check,ck,crc{,32},md5,rmd160,sha{1..3,224,384,512}}sum{,s}`), Config (`.kys_mac`), Config: Python (`.flake8`), DC (`.dc`, `.dcrc`), Database (`fc-list`, `MANIFEST.MF`, `.tgn`), Deno (`deno.json{,c}`), Docker (`Containerfile`), EditorConfig (`.ecrc`), Elixir (`.heex`, `.html.heex`), Generic (`.ed`), Git (`.lfsconfig`, `gitignore{_,-}global`), GLSL (`.rchit`, `.rmiss`), Godot (`.gdshader`), Grammar (`.grammar`), HTML (`.hta`), KiCad (`.kicad_{dru,sch,pro,prl,sym}`, `fp-info-cache`, `sym-lib-table`), Mail (`.eml`, `.mbox`, `.mbx`), Makefile (`.{mk,mak,make}file`), Maps (`.mapping`, `.tiny`, `.tinyv2`, `.enigma`, `.match`, `.unpick`), PEG.js (`.peggy`), Readme (`CITATION{.cff,S,}`, `.ens`, `.enw`, `.enf`, `.enlp`, `.enlx`, `.enl`, `.enq`, `.ens`, `.entl`, `.enw`, `.enz`, `.es1`, `.nbib`, `.ris{,-rm8}`), Roff (`*.cstr`, `cstr.54`, `indep_tr`), Safari (`.binarycookies`), Shell (`{.,}{m,pd,}ksh{,rc}`), TextMate (`.tm_properties`, `.tmProperties`), TypeScript (`.cts`, `.mts`), Units (`units.dat`, `unittab`), XML (`.xmp`), Yacc (`.ypp`)
13+
- **Support:** 3D Asset (`.hlsl`, `.cginc`, `.fxh`, `.hlsli`), Adobe Illustrator (`.aia`), Adobe Photoshop (`.atn`), Appcelerator Titanium (`.tss`), Atom (`.atomignore`), BC (`.bc`, `bc.library`), Checksum lists (`{.,}{check,ck,crc{,32},md5,rmd160,sha{1..3,224,384,512}}sum{,s}`), Config (`.kys_mac`), Config: Python (`.flake8`), DC (`.dc`, `.dcrc`), Database (`fc-list`, `MANIFEST.MF`, `.tgn`), Deno (`deno.json{,c}`), Docker (`Containerfile`), EditorConfig (`.ecrc`), Elixir (`.heex`, `.html.heex`), Generic (`.ed`), Git (`.lfsconfig`, `gitignore{_,-}global`), GLSL (`.rchit`, `.rmiss`), Godot (`.gdshader`), Grammar (`.grammar`), HTML (`.hta`), KiCad (`.kicad_{dru,sch,pro,prl,sym}`, `fp-info-cache`, `sym-lib-table`), Mail (`.eml`, `.mbox`, `.mbx`), Makefile (`.{mk,mak,make}file`), Maps (`.mapping`, `.tiny`, `.tinyv2`, `.enigma`, `.match`, `.unpick`), PEG.js (`.peggy`), Readme (`CITATION{.cff,S,}`, `.ens`, `.enw`, `.enf`, `.enlp`, `.enlx`, `.enl`, `.enq`, `.ens`, `.entl`, `.enw`, `.enz`, `.es1`, `.nbib`, `.ris{,-rm8}`), Roff (`*.cstr`, `cstr.54`, `indep_tr`), Safari (`.binarycookies`), Shell (`{.,}{m,pd,}ksh{,rc}`), TextMate (`.tm_properties`, `.tmProperties`), TypeScript (`.cts`, `.mts`), Units (`units.dat`, `unittab`), XML (`.xmp`), Yacc (`.ypp`)
1414
- Improved modeline support for [Less](https://lesscss.org/) stylesheets
1515

1616
### Fixed

config.cson

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ fileIcons:
957957
Binary:
958958
icon: "binary"
959959
match: [
960-
[/\.([ls]?o|out)$/i, "medium-red", tag: "binary"]
960+
[/\.([ls]?o|out)$/i, "medium-red", tag: "binary", scope: /^(code-text-)?binary$/i]
961961
[".axf", "dark-blue"]
962962
[".elf", "medium-green"]
963963
[".la", "dark-red"]
@@ -1585,7 +1585,7 @@ fileIcons:
15851585
generic: true
15861586
match: [
15871587
[/\.(ini|desktop|directory|cfg|co?nf|prefs)$/i, "medium-yellow", scope: "ini", alias: "dosini"]
1588-
[".properties", "medium-purple", scope: "java-properties"]
1588+
[".properties", "medium-purple", scope: /(^|\.)(Java[-_ ]?)?Properties($|\.)/i]
15891589
[".ld", "dark-red"]
15901590
[".ldif", "dark-green"]
15911591
[".lds", "medium-red"]
@@ -1799,7 +1799,7 @@ fileIcons:
17991799
CUDA:
18001800
icon: "nvidia"
18011801
match: [
1802-
[".cu", "medium-green", scope: /\.cuda(-c\+\+)?$/i]
1802+
[".cu", "medium-green", scope: /\.CUDA([-_ ]?C(\+\+|pp))?$/i]
18031803
[".cuh", "dark-green"]
18041804
]
18051805

@@ -2060,7 +2060,7 @@ fileIcons:
20602060

20612061
Docker:
20622062
icon: "docker"
2063-
alias: "Dockerfile"
2063+
alias: /^((Docker|Container)file|DockerCompose)$/i
20642064
match: [
20652065
[/^((Container|Docker)file|docker-compose)|\.docker(file|ignore)$/i, "dark-blue", scope: "dockerfile", priority: 2]
20662066
[/^docker-sync\.yml$/i, "dark-orange", priority: 2]
@@ -2870,7 +2870,8 @@ fileIcons:
28702870
icon: "git"
28712871
match: [
28722872
[/^\.git|^\.keep$|\.(lfsconfig|mailmap)$/i, "medium-red", scope: /\.git-(commit|config|rebase)$/i]
2873-
[/\.git(ignore|config|attributes)$|^gitignore[-_]global$/i, "medium-red", priority: 0.5]
2873+
[/(^|\.)gitignore([-_]global)?$/i, "medium-red", scope: /(^|\.)((git[-_ ]?)?ignore)($|\.)/i, alias: "Ignore List"]
2874+
[/\.git(config|attributes)$/i, "medium-red", priority: 0.5]
28742875
]
28752876

28762877
"Git - Commit":
@@ -3215,8 +3216,8 @@ fileIcons:
32153216
HTML:
32163217
icon: "html5"
32173218
match: [
3218-
[/\.x?html?$/i, "medium-orange", scope: "html.basic", alias: /^(xhtml|htm)$/i, signature: /^<!DOCTYPE\s+html/i]
3219-
[".cshtml", "medium-red"]
3219+
[/\.x?html?$/i, "medium-orange", scope: /\.html\.basic$|^HTML$/i, alias: /^(xhtml|htm)$/i, signature: /^<!DOCTYPE\s+html/i]
3220+
[".cshtml", "medium-red", "razor"]
32203221
[".gohtml", "dark-blue", "gohtml"]
32213222
[".hta", "dark-orange", alias: "HTML App"]
32223223
[/\.html\.[hl]?eex$/i, "medium-purple"]
@@ -3595,7 +3596,7 @@ fileIcons:
35953596

35963597
JSX:
35973598
icon: "jsx"
3598-
scope: "jsx"
3599+
scope: /(^|\.)(JSX|JavaScript[-_ ]?React)($|\.)/i
35993600
match: ".jsx"
36003601
colour: "auto-blue"
36013602

@@ -4053,10 +4054,10 @@ fileIcons:
40534054

40544055
Markdown:
40554056
icon: "markdown"
4056-
scope: /(^|\.)[gp]fm|j?md|markdown(\.|$)/i
4057-
match: /\.(md(te?xt)?|mdown|markdown|mkd|mkdown|mdwn|mkdn|ron|pmd|jmd)$/i
4058-
alias: /^(CommonMark|GFM|Pandoc)$|\bMarkdown\b/i
4059-
colour: "medium-blue"
4057+
match: [
4058+
[/\.(md(te?xt)?|mdown|markdown|mkd|mkdown|mdwn|mkdn|ron|pmd)$/i, "medium-blue", scope: /(^|\.)[gp]fm|md|markdown(\.|$)/i, alias: /^(CommonMark|GFM|Pandoc)$|\bMarkdown\b/i]
4059+
[".jmd", "medium-purple", scope: /(^|\.)julia([-_ ]?(markdown|md))($|\.)/i]
4060+
]
40604061

40614062
MarkdownLint:
40624063
icon: "markdownlint"
@@ -4383,7 +4384,6 @@ fileIcons:
43834384
[".comp", "medium-purple"]
43844385
[".tesc", "medium-green"]
43854386
[".tese", "medium-green"]
4386-
[".cginc", "dark-cyan"]
43874387
[".dxf", "medium-orange"]
43884388
[".dwg", "dark-orange"]
43894389
[".mdl", "medium-red"]
@@ -4394,6 +4394,12 @@ fileIcons:
43944394
[/\.(rviz|vcg)$/i, "dark-blue", "rviz"]
43954395
[/\.(ste?p|p21)$/i, "medium-orange", alias: "STEP Physical File", scope: "step-file", signature: /^ISO-10303-21/]
43964396
[".x", "medium-green", alias: "DirectX 3D File", scope: /(^|\.)direct-?x($|\.)/i, priority: 0.5, signature: /^xof 0303(?:txt|bin|tzip|bzip)\b/]
4397+
4398+
# HLSL extensions
4399+
[".hlsl", "medium-blue", "hlsl"]
4400+
[".cginc", "dark-cyan"]
4401+
[".fxh", "dark-cyan"]
4402+
[".hlsli", "dark-green"]
43974403
]
43984404

43994405
Modelica:
@@ -4849,7 +4855,8 @@ fileIcons:
48494855
"Objective-C":
48504856
icon: "objc"
48514857
match: [
4852-
[/\.mm?$/i, "medium-blue", scope: /\.objc(pp)?$/i, alias: /^(Obj-?C|ObjectiveC)(\+\+)?$/i]
4858+
[".m", "medium-blue", scope: "objc", alias: /^Obj(ective)?[-_ ]?C$/i]
4859+
[".mm", "dark-blue", scope: "objcpp", alias: /^Obj(ective)?[-_ ]?C(\+\+|pp)$/i]
48534860
[".pch", "dark-red"]
48544861
[".x", "dark-green"]
48554862
]
@@ -6801,7 +6808,7 @@ fileIcons:
68016808

68026809
TSX: # React/Typescript
68036810
icon: "tsx"
6804-
scope: "tsx"
6811+
scope: /(^|\.)(TSX|TypeScript[-_ ]?React)($|\.)/i
68056812
match: ".tsx"
68066813
colour: "light-blue"
68076814

@@ -7100,7 +7107,7 @@ fileIcons:
71007107
"Visual Studio":
71017108
icon: "vs"
71027109
match: [
7103-
[/\.(vba?|fr[mx]|bas)$/i, "medium-blue", scope: "vbnet", alias: /^vb\.?net$/i]
7110+
[/\.(vba?|fr[mx]|bas)$/i, "medium-blue", scope: /(^|\.)vb(net)?($|\.)/i, alias: /^(VB\.?NET|Visual[-_ ]?Basic([-_ ]?\.NET)?)$/i]
71047111
[".vbhtml", "medium-red"]
71057112
[".vbs", "medium-green"]
71067113
[".vsix", "medium-cyan"]
@@ -7149,7 +7156,7 @@ fileIcons:
71497156

71507157
Vue:
71517158
icon: "vue"
7152-
scope: "vue"
7159+
scope: /^(Vue([-_ ]?HTML)?|text\.html\.vue)$/i
71537160
match: [
71547161
[".vue", "light-green"]
71557162
[/^vue\.config\.[cm]?js$/i, "light-green", priority: 2]

0 commit comments

Comments
 (0)