diff options
author | Brett Lyons | 2023-02-03 14:24:22 +0000 |
---|---|---|
committer | GitHub | 2023-02-03 14:24:22 +0000 |
commit | d8f482e11e2dec544ede636464cf6a87e32bd1f7 (patch) | |
tree | 1bff4bc08c82d414575cc07c3833de2812356a53 | |
parent | 30412366be411335b7e2600e9b4178355c27da15 (diff) |
Add MSBuild language based on XML grammar (#5793)
-rw-r--r-- | book/src/generated/lang-support.md | 1 | ||||
-rw-r--r-- | languages.toml | 17 | ||||
-rw-r--r-- | runtime/queries/msbuild/highlights.scm | 1 | ||||
-rw-r--r-- | runtime/queries/msbuild/indents.scm | 1 | ||||
-rw-r--r-- | runtime/queries/msbuild/injections.scm | 1 |
5 files changed, 21 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 1711ec36..99fe82b3 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -83,6 +83,7 @@ | mermaid | ✓ | | | | | meson | ✓ | | ✓ | | | mint | | | | `mint` | +| msbuild | ✓ | | ✓ | | | nickel | ✓ | | ✓ | `nls` | | nix | ✓ | | | `nil` | | nu | ✓ | | | | diff --git a/languages.toml b/languages.toml index 09ba2a2a..8520b12d 100644 --- a/languages.toml +++ b/languages.toml @@ -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] +'(' = ')' +'{' = '}' +'[' = ']' +'"' = '"' +"'" = "'" +"<" = ">" diff --git a/runtime/queries/msbuild/highlights.scm b/runtime/queries/msbuild/highlights.scm new file mode 100644 index 00000000..27b10d95 --- /dev/null +++ b/runtime/queries/msbuild/highlights.scm @@ -0,0 +1 @@ +; inherits: xml diff --git a/runtime/queries/msbuild/indents.scm b/runtime/queries/msbuild/indents.scm new file mode 100644 index 00000000..27b10d95 --- /dev/null +++ b/runtime/queries/msbuild/indents.scm @@ -0,0 +1 @@ +; inherits: xml diff --git a/runtime/queries/msbuild/injections.scm b/runtime/queries/msbuild/injections.scm new file mode 100644 index 00000000..27b10d95 --- /dev/null +++ b/runtime/queries/msbuild/injections.scm @@ -0,0 +1 @@ +; inherits: xml |