Skip to content

Commit

Permalink
Add support for CGI/FCGI files and Perl *.al files
Browse files Browse the repository at this point in the history
The *.cgi/fcgi extensions are associated with many different server-side
languages, such as Ruby, Perl and Python. Since the files currently have
no icon whatsoever, we may as well give them a generic icon (which beats
having nothing).

Perl *.al files are used by the AutoLoader module:
    http://perldoc.perl.org/AutoLoader.html
  • Loading branch information
Alhadis committed Jul 2, 2017
1 parent ac2e661 commit c95e888
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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:** CPAN (`cpanfile`, `META.{yml,json}`), Pod (`.pod`)
- **Support:** Jest (`jest.config.js`), TypeScript tests (`*.{spec|test}.{ts,tsx}`), Unit tests (`t/*.sh`, `t/*.t`), Visual Studio (`.njsproj`)
- **Support:** Generic code (`.cgi`, `.fcgi`), Jest (`jest.config.js`), Perl (`.al`), TypeScript tests (`*.{spec|test}.{ts,tsx}`), Unit tests (`t/*.sh`, `t/*.t`), Visual Studio (`.njsproj`)

### Changed
- Perl icon changed to use the Perl onion
Expand Down
3 changes: 3 additions & 0 deletions config.cson
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,7 @@ fileIcons:
[".brs", "dark-blue", "brightscript"]
[".capnp", "dark-red", scope: "capnp", alias: /^(Cap[^\w\s]?n\s*Proto|capnp)$/i]
[".ccxml", "dark-blue"]
[".cgi", "medium-red"]
[".ch", "medium-red"]
[".clixml", "dark-blue"]
[".cocci", "medium-blue"]
Expand All @@ -1589,6 +1590,7 @@ fileIcons:
[".ebnf", "medium-red", "ebnf"]
[".ecl", "medium-blue"]
[".eclxml", "dark-green"]
[".fcgi", "medium-blue"]
[".fidl", "medium-pink", "fidl"]
[".filters", "medium-pink"]
[".flex", "dark-red"]
Expand Down Expand Up @@ -3096,6 +3098,7 @@ fileIcons:
icon: "perl"
match: [
[/\.p(er)?l$/i, "medium-blue", alias: /^C?Perl$/i, scope: "perl", interpreter: /^c?perl[\d.]*$/]
[".al", "dark-blue"]
[".ph", "dark-purple"]
[".plx", "medium-purple"]
[".pm", "dark-blue"]
Expand Down
6 changes: 3 additions & 3 deletions lib/icons/.icondb.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ module.exports = [
["gear-icon",["dark-blue","dark-blue"],/\.arcconfig$|\.python-version$/i],
["gear-icon",["dark-orange","dark-orange"],/\.lintstagedrc$/i],
["gears-icon",["dark-orange","dark-orange"],/\.dll$/i,,false,,,,/^PMOCCMOC/],
["code-icon",["medium-blue","medium-blue"],/\.xml$|\.config$|\.4th$|\.cocci$|\.dyl$|\.dylan$|\.ecl$|\.forth$|\.launch$|\.manifest$|\.menu$|\.srdf$|\.st$|\.stellaris$|\.ui$|\.wsf$|\.x3d$|\.xaml$/i,,false,/^stellaris$/,/\.stellaris$/i,,/^<\?xml /],
["code-icon",["medium-blue","medium-blue"],/\.xml$|\.config$|\.4th$|\.cocci$|\.dyl$|\.dylan$|\.ecl$|\.fcgi$|\.forth$|\.launch$|\.manifest$|\.menu$|\.srdf$|\.st$|\.stellaris$|\.ui$|\.wsf$|\.x3d$|\.xaml$/i,,false,/^stellaris$/,/\.stellaris$/i,,/^<\?xml /],
["code-icon",["dark-red","dark-red"],/\.rdf$|\.bc$|\.dotsettings$|\.flex$|\.fsproj$|\.prw$|\.xproj$/i,,false,/^baan$/,/\.baan$/i],
["code-icon",["medium-blue","medium-blue"],/^_service$/],
["code-icon",["medium-red","medium-red"],/^configure\.ac$|\.ML$/],
Expand All @@ -534,7 +534,7 @@ module.exports = [
["code-icon",["dark-blue","dark-blue"],/\.axml$|\.bmx$|\.brs$|\.ccxml$|\.clixml$|\.fth$|\.intr$|\.mdpolicy$|\.mtml$|\.myt$|\.xsd$/i,,false,/^brightscript$/,/\.brightscript$/i],
["code-icon",["medium-maroon","medium-maroon"],/\.bnf$|\.fxml$/i,,false,/^bnf$/,/\.bnf$/i,/^bnf$/i],
["code-icon",["dark-red","dark-red"],/\.capnp$/i,,false,,/\.capnp$/i,/^(?:Cap[^\w\s]?n\s*Proto|capnp)$/i],
["code-icon",["medium-red","medium-red"],/\.ch$|\.cw$|\.ebnf$|\.iml$|\.jflex$|\.mask$|\.mumps$|\.prg$|\.pt$|\.rl$|\.sml$|\.targets$|\.webidl$|\.wsdl$|\.xacro$|\.xliff$/i,,false,/^ebnf$/,/\.ebnf$/i],
["code-icon",["medium-red","medium-red"],/\.cgi$|\.ch$|\.cw$|\.ebnf$|\.iml$|\.jflex$|\.mask$|\.mumps$|\.prg$|\.pt$|\.rl$|\.sml$|\.targets$|\.webidl$|\.wsdl$|\.xacro$|\.xliff$/i,,false,/^ebnf$/,/\.ebnf$/i],
["code-icon",["dark-pink","dark-pink"],/\.ct$|\.zcml$/i],
["code-icon",["dark-green","dark-green"],/\.cy$|\.eclxml$|\.ivy$|\.sed$|\.tml$|\.y$/i],
["code-icon",["dark-purple","dark-purple"],/\.ditamap$|\.frt$|\.lp$|\.omgrofl$|\.osm$|\.wxs$|\.xib$/i],
Expand Down Expand Up @@ -911,9 +911,9 @@ module.exports = [
["peg-icon",["medium-red","medium-red"],/\.pegjs$/i,,false,/^pegjs$/,/\.pegjs$/i,/^pegjs$/i],
["peg-icon",["medium-maroon","medium-maroon"],/\.pegcoffee$/i,,false,/^pegcoffee$/,/\.pegcoffee$/i,/^Peg[\W_ \t]?Js$|^pegc[0o]ffee$/i],
["perl-icon",["medium-blue","medium-blue"],/\.p(?:er)?l$/i,,false,/^c?perl[\d.]*$/,/\.perl$/i,/^C?Perl$/i],
["perl-icon",["dark-blue","dark-blue"],/\.al$|\.pm$/i],
["perl-icon",["dark-purple","dark-purple"],/\.ph$/i],
["perl-icon",["medium-purple","medium-purple"],/\.plx$/i],
["perl-icon",["dark-blue","dark-blue"],/\.pm$/i],
["perl-icon",["medium-red","medium-red"],/\.(?:psgi|xs)$/i],
["perl6-icon",["medium-purple","medium-purple"],/\.pl6$/i,,false,/^perl6$/,/(?:^|\.)perl6(?:fe)?(?=\.|$)/,/^(?:pl6|Perl\s*6)$/i],
["perl6-icon",["light-blue","light-blue"],/\.[tp]6$|\.6pl$/i],
Expand Down

0 comments on commit c95e888

Please sign in to comment.