Skip to content

Commit

Permalink
Add MSBuild language based on XML grammar (#5793)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettlyons authored Feb 3, 2023
1 parent 3041236 commit d8f482e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
| mermaid || | | |
| meson || || |
| mint | | | | `mint` |
| msbuild || || |
| nickel || || `nls` |
| nix || | | `nil` |
| nu || | | |
Expand Down
17 changes: 17 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2117,3 +2117,20 @@ roots = []
comment-token = "#"
indent = { tab-width = 4, unit = " " }
grammar = "python"

[[language]]
name = "msbuild"
scope = "source.msbuild"
injection-regex = "msbuild"
file-types = ["proj", "vbproj", "csproj", "fsproj", "targets", "props"]
indent = { tab-width = 2, unit = " " }
roots = []
grammar = "xml"

[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
"'" = "'"
"<" = ">"
1 change: 1 addition & 0 deletions runtime/queries/msbuild/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: xml
1 change: 1 addition & 0 deletions runtime/queries/msbuild/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: xml
1 change: 1 addition & 0 deletions runtime/queries/msbuild/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: xml

0 comments on commit d8f482e

Please sign in to comment.