From 921ceaa221fa51e6b982b44fdbcef590747b2267 Mon Sep 17 00:00:00 2001 From: Jaykul Date: Sat, 12 Oct 2013 16:37:49 -0400 Subject: [PATCH] Update PowerShell File Extensions The three core PowerShell language extensions are .psd1, .ps1 and .psm1 -- plus two xml file extensions: .ps1xml and .clixml which are for formatting rules and serialization. .psm1 modules files use exactly the same syntax as scripts, but are imported rather than executed. .psd1 are metadata files which use a subset of the same syntax (they can be highlighted using the same highlighter, it's just some commands, variables, and types aren't allowed in data files) --- lib/linguist/languages.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index f28aa044..350cc0d2 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1050,6 +1050,9 @@ PowerShell: aliases: - posh primary_extension: .ps1 + extensions: + - .psm1 + - .psd1 Processing: type: programming @@ -1424,6 +1427,7 @@ XML: extensions: - .axml - .ccxml + - .clixml - .dita - .ditamap - .ditaval @@ -1433,6 +1437,7 @@ XML: - .mxml - .plist - .pt + - .ps1xml - .rdf - .rss - .scxml