Skip to content

Commit b854c47

Browse files
authored
Add .slnx to XML extensions (#7084)
* Recognize .slnx as XML * Add a sample .slnx * Delete samples/Microsoft Visual Studio Solution/Robots.slnx * Create Robots.slnx * Add support for <Project and <Solution tag for auto-recognition of xml * revert * Update test_strategies.rb
1 parent 9d86ae3 commit b854c47

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

lib/linguist/languages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8346,6 +8346,7 @@ XML:
83468346
- ".scxml"
83478347
- ".sfproj"
83488348
- ".shproj"
8349+
- ".slnx"
83498350
- ".srdf"
83508351
- ".storyboard"
83518352
- ".sublime-snippet"

samples/XML/Robots.slnx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Solution>
2+
<Project Path="build\Robots.Build\Robots.Build.csproj" />
3+
<Project Path="src\Robots.Grasshopper\Robots.Grasshopper.csproj">
4+
<BuildDependency Project="src\Robots\Robots.csproj" />
5+
</Project>
6+
<Project Path="src\Robots\Robots.csproj" />
7+
<Project Path="tests\Robots.Tests\Robots.Tests.csproj">
8+
<BuildDependency Project="src\Robots\Robots.csproj" />
9+
</Project>
10+
</Solution>

test/test_strategies.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ def test_xml
190190
"#{samples_path}/XML/some-ideas.mm",
191191
"#{samples_path}/XML/GMOculus.project.gmx",
192192
"#{samples_path}/XML/obj_control.object.gmx",
193-
"#{samples_path}/XML/MainView.axaml"
193+
"#{samples_path}/XML/MainView.axaml",
194+
"#{samples_path}/XML/Robots.slnx",
194195
]
195196
assert_all_xml all_xml_fixtures("*") - no_root_tag
196197

0 commit comments

Comments
 (0)