diff options
author | Chris | 2024-03-07 22:39:00 +0000 |
---|---|---|
committer | GitHub | 2024-03-07 22:39:00 +0000 |
commit | 301dfb07ccf3df41c381300dddb760bf76745cf5 (patch) | |
tree | 10376017a87731dfd3cb2f159de446be65bdef72 /languages.toml | |
parent | e27b04735c630140b45ac9fab1b3087ae831f34a (diff) |
Add PowerShell highlighting (#9827)
Diffstat (limited to 'languages.toml')
-rw-r--r-- | languages.toml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml index 49672a30..70953b99 100644 --- a/languages.toml +++ b/languages.toml @@ -3259,3 +3259,17 @@ indent = { tab-width = 4, unit = " " } [[grammar]] name = "fidl" source = { git = "https://github.com/google/tree-sitter-fidl", rev = "bdbb635a7f5035e424f6173f2f11b9cd79703f8d" } + +[[language]] +name = "powershell" +scope = "source.powershell" +injection-regex = "(pwsh|powershell)" +file-types = [ "ps1", "psm1", "psd1", "pscc", "psrc" ] +shebangs = [ "pwsh", "powershell" ] +comment-token = '#' +block-comment-tokens = { start = "<#", end = "#>" } +indent = { tab-width = 4, unit = " " } + +[[grammar]] +name = "powershell" +source = { git = "https://github.com/airbus-cert/tree-sitter-powershell", rev = "c9316be0faca5d5b9fd3b57350de650755f42dc0" } |