File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -1447,17 +1447,20 @@ public static void RegisterHighlighting(
1447
1447
1448
1448
if ( resourceStream != null )
1449
1449
{
1450
+ IHighlightingDefinition highlightingDefinition ;
1451
+
1452
+ using ( resourceStream )
1453
+ using ( XmlTextReader reader = new XmlTextReader ( resourceStream ) )
1454
+ {
1455
+ highlightingDefinition = HighlightingLoader . Load ( reader , manager ) ;
1456
+ }
1457
+
1450
1458
manager . RegisterHighlighting (
1451
- name , extensions ,
1452
- delegate {
1453
- using ( resourceStream )
1454
- using ( XmlTextReader reader = new XmlTextReader ( resourceStream ) )
1455
- {
1456
- var highlightingDefinition = HighlightingLoader . Load ( reader , manager ) ;
1457
- ThemeManager . Current . ApplyHighlightingColors ( highlightingDefinition ) ;
1458
- return highlightingDefinition ;
1459
- }
1460
- } ) ;
1459
+ name , extensions ,
1460
+ delegate {
1461
+ ThemeManager . Current . ApplyHighlightingColors ( highlightingDefinition ) ;
1462
+ return highlightingDefinition ;
1463
+ } ) ;
1461
1464
}
1462
1465
}
1463
1466
}
You can’t perform that action at this time.
0 commit comments