on master help sign in
Add MSBuild language based on XML grammar (#5793)
commitd8f482e11e2dec544ede636464cf6a87e32bd1f7 authorBrett Lyons <brettlyons@users.noreply.github.com> dateFri 3 Feb 2023, 07:24 (4 years ago) parent3041236
5 files changed+21
book/src/generated/lang-support.md+1 languages.toml+17 runtime/queries/msbuild/highlights.scm+1 runtime/queries/msbuild/indents.scm+1 runtime/queries/msbuild/injections.scm+1
book/src/generated/lang-support.md+1
@@ -83,6 +83,7 @@
8383| mermaid | ✓ | | | |
8484| meson | ✓ | | ✓ | |
8585| mint | | | | `mint` |
86+| msbuild | ✓ | | ✓ | |
8687| nickel | ✓ | | ✓ | `nls` |
8788| nix | ✓ | | | `nil` |
8889| nu | ✓ | | | |
languages.toml+17
@@ -2117,3 +2117,20 @@ roots = []
21172117comment-token = "#"
21182118indent = { tab-width = 4, unit = " " }
21192119grammar = "python"
2120+
2121+[[language]]
2122+name = "msbuild"
2123+scope = "source.msbuild"
2124+injection-regex = "msbuild"
2125+file-types = ["proj", "vbproj", "csproj", "fsproj", "targets", "props"]
2126+indent = { tab-width = 2, unit = " " }
2127+roots = []
2128+grammar = "xml"
2129+
2130+[language.auto-pairs]
2131+'(' = ')'
2132+'{' = '}'
2133+'[' = ']'
2134+'"' = '"'
2135+"'" = "'"
2136+"<" = ">"
runtime/queries/msbuild/highlights.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: xml
runtime/queries/msbuild/indents.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: xml
runtime/queries/msbuild/injections.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: xml