Skip to content

Commit

Permalink
Add filetype mappings for CSTR #54
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed Nov 3, 2021
1 parent 1d5e6cb commit 76e3898
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
----------------------
### Added
- **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}`)
- **Support:** Appcelerator Titanium (`.tss`), BC (`.bc`, `bc.library`), Checksum lists (`{.,}{check,ck,crc{,32},md5,rmd160,sha{1..3,224,384,512}}sum{,s}`), DC (`.dc`, `.dcrc`), Database (`.tgn`), EditorConfig (`.ecrc`), Generic (`.ed`), Git (`.lfsconfig`), Grammar (`.grammar`), Mail (`.eml`, `.mbox`, `.mbx`), Maps (`.mapping`, `.tiny`, `.tinyv2`, `.enigma`, `.match`, `.unpick`), PEG.js (`.peggy`), TextMate (`.tm_properties`, `.tmProperties`), Units (`units.dat`, `unittab`), XML (`.xmp`)
- **Support:** Appcelerator Titanium (`.tss`), BC (`.bc`, `bc.library`), Checksum lists (`{.,}{check,ck,crc{,32},md5,rmd160,sha{1..3,224,384,512}}sum{,s}`), DC (`.dc`, `.dcrc`), Database (`.tgn`), EditorConfig (`.ecrc`), Generic (`.ed`), Git (`.lfsconfig`), Grammar (`.grammar`), Mail (`.eml`, `.mbox`, `.mbx`), Maps (`.mapping`, `.tiny`, `.tinyv2`, `.enigma`, `.match`, `.unpick`), PEG.js (`.peggy`), Roff (`*.cstr`, `cstr.54`, `indep_tr`), TextMate (`.tm_properties`, `.tmProperties`), Units (`units.dat`, `unittab`), XML (`.xmp`)
- Improved modeline support for [Less](https://lesscss.org/) stylesheets

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions config.cson
Original file line number Diff line number Diff line change
Expand Up @@ -3959,7 +3959,7 @@ fileIcons:
Roff:
icon: "manpage"
match: [
[/\.(1([bcmstx]|has|in)?|[24568]|3(avl|bsm|cfgadm|in|[cmx]|perl|pm?|qt)?|7(d|fs|i|ipp|m|p)?|9[efps]?|eqn|groff|man|mandoc|mdoc|me|mom|nr?|nroff|roff?|tmac|tmac-u|tr|troff)$/i
[/\.(1([bcmstx]|has|in)?|[24568]|3(avl|bsm|cfgadm|in|[cmx]|perl|pm?|qt)?|7(d|fs|i|ipp|m|p)?|9[efps]?|cstr|eqn|groff|man|mandoc|mdoc|me|mom|nr?|nroff|roff?|tmac|tmac-u|tr|troff)$/i
"dark-green"
scope: /\.[gtn]?roff$/i
alias: /^([gtn]?roff|man([-_\s]?page|doc)?|mdoc)$/i
Expand All @@ -3979,7 +3979,7 @@ fileIcons:
signature: /^\.(PS\s[^\0]*?^\.P[EF]|cstart\n[^\0]*?^\.cend|begin dformat\s[^\0]*?^\.end|G1\n[^\0]*?\n\.G2)\n/m]
[/\.(rnh|rno|run|runoff)$/i, "dark-maroon", "runoff"]
[/(^|\.)((troff|eqn)rc(-end)?)$/i, "dark-green"]
[/^tmac\.|^(mmn|mmt|toc\.entries)$/i, "dark-green", priority: 2]
[/^tmac\.|^(cstr\.54|indep_tr|mmn|mmt|toc\.entries)$/i, "dark-green", priority: 2]
[/(^|\/)samples\/(eqn|mm|[nt]?roff|pic|tbl)\.[a-z]+$/i, "dark-green", matchPath: true, priority: 0.5]
[///
(\\|/)
Expand Down
4 changes: 2 additions & 2 deletions lib/icons/.icondb.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ module.exports = [
["restql-icon",["medium-cyan","medium-cyan"],/^restql\.ya?ml$/i,2],
["clojure-icon",["medium-maroon","dark-maroon"],/^riemann\.config$/i,2],
["robots-icon",["dark-cyan","dark-cyan"],/^robots\.txt$/i,2],
["manpage-icon",["dark-green","dark-green"],/^tmac\.|^(?:mmn|mmt|toc\.entries)$/i,2],
["manpage-icon",["dark-green","dark-green"],/^tmac\.|^(?:cstr\.54|indep_tr|mmn|mmt|toc\.entries)$/i,2],
["rollup-icon",["medium-red","medium-red"],/^rollup\.config\./i,2],
["rubocop-icon",["dark-red","dark-red"],/^\.rubocop(?:_todo)?\.ya?ml$/i,2],
["sass-icon",["medium-yellow","dark-yellow"],/^\.sassrc(?:\.[cm]?js)?$/i,2],
Expand Down Expand Up @@ -1641,7 +1641,7 @@ module.exports = [
["riot-icon",["medium-red","medium-red"],/\.tag$/i,,false,,/\.riot$/i,/^Ri[0o]t[\W_ \t]?Js$/i],
["rmarkdown-icon",["medium-red","medium-red"],/\.(?:rmd|rmarkdown)$/i],
["robot-icon",["medium-cyan","medium-cyan"],/\.robot$/i],
["manpage-icon",["dark-green","dark-green"],/\.(?:1(?:[bcmstx]|has|in)?|[24568]|3(?:avl|bsm|cfgadm|in|[cmx]|perl|pm?|qt)?|7(?:d|fs|i|ipp|m|p)?|9[efps]?|eqn|groff|man|mandoc|mdoc|me|mom|nr?|nroff|roff?|tmac|tmac-u|tr|troff)$|^(?:man|mdoc)\.template$|(?:^|\.)(?:(?:troff|eqn)rc(?:-end)?)$/i,,false,/man|mandoc|(?:[gnt]|dit)?roff/i,/\.[gtn]?roff$/i,/^(?:[gtn]?roff|man(?:[-_\s]?page|doc)?|mdoc)$/i,/^('\\" [tre]+(?=\s|$)|\.TH[ \t]+(?:\S+)|\.so[ \t]+man(\w+)\/.+\.\1($|\s)|\.EQ\n|('+\t?|\.\t)\\"\s)/m],
["manpage-icon",["dark-green","dark-green"],/\.(?:1(?:[bcmstx]|has|in)?|[24568]|3(?:avl|bsm|cfgadm|in|[cmx]|perl|pm?|qt)?|7(?:d|fs|i|ipp|m|p)?|9[efps]?|cstr|eqn|groff|man|mandoc|mdoc|me|mom|nr?|nroff|roff?|tmac|tmac-u|tr|troff)$|^(?:man|mdoc)\.template$|(?:^|\.)(?:(?:troff|eqn)rc(?:-end)?)$/i,,false,/man|mandoc|(?:[gnt]|dit)?roff/i,/\.[gtn]?roff$/i,/^(?:[gtn]?roff|man(?:[-_\s]?page|doc)?|mdoc)$/i,/^('\\" [tre]+(?=\s|$)|\.TH[ \t]+(?:\S+)|\.so[ \t]+man(\w+)\/.+\.\1($|\s)|\.EQ\n|('+\t?|\.\t)\\"\s)/m],
["manpage-icon",["dark-green","dark-green"],/\.(?:chem|dformat|pic)$|^grap(?:\.tex)?\.defines$/i,,false,/^(?:(?:pic|grap)2(?:plot|graph)|[gt]?pic|picpack|picasso)$/,/\.source\.pic$/i,/^R[0o]ff$|^(?:[gt]?pic|dformat|chem)$/i,/^\.(?:PS\s[^\0]*?^\.P[EF]|cstart\n[^\0]*?^\.cend|begin dformat\s[^\0]*?^\.end|G1\n[^\0]*?\n\.G2)\n/m],
["manpage-icon",["dark-maroon","dark-maroon"],/\.(?:rnh|rno|run|runoff)$/i,,false,/^runoff$/,/\.runoff$/i,/^R[0o]ff$|^run[0o]ff$/i],
["manpage-icon",["dark-green","dark-green"],/(\\|\/)(?:man(\w+)\1[^\\\/]+\.\2|(?:tmac|eqnchar)\.d\1(?:ms\.)?[^\\\/.]+(?:\.in)?|picasso\1(?:defs\.\w+|disclaimer))$/,,true],
Expand Down

0 comments on commit 76e3898

Please sign in to comment.