@@ -1501,7 +1501,8 @@ public Dictionary<LineTrackedString, object> GatherActualContainers()
15011501 pspaces = spaces ;
15021502 continue ;
15031503 }
1504- string text = cleaned [ "- " . Length ..] ;
1504+ string textRaw = Lines [ i ] . Trim ( ) [ "- " . Length ..] ;
1505+ string textLow = textRaw . ToLowerFast ( ) ;
15051506 if ( ! cleaned . EndsWith ( ':' ) )
15061507 {
15071508 while ( i + 1 < Lines . Length )
@@ -1510,7 +1511,8 @@ public Dictionary<LineTrackedString, object> GatherActualContainers()
15101511 string cleaned2 = CleanedLines [ i + 1 ] ;
15111512 if ( CountPreSpaces ( line2 ) > spaces && ! cleaned2 . StartsWith ( "- " ) )
15121513 {
1513- text += "\n " + line2 ;
1514+ textRaw += "\n " + line2 ;
1515+ textLow += "\n " + cleaned2 ;
15141516 i ++ ;
15151517 if ( cleaned2 . EndsWith ( ':' ) )
15161518 {
@@ -1523,11 +1525,11 @@ public Dictionary<LineTrackedString, object> GatherActualContainers()
15231525 }
15241526 }
15251527 }
1526- if ( text . EndsWith ( ':' ) )
1528+ if ( textLow . EndsWith ( ':' ) )
15271529 {
1528- if ( text . StartsWith ( "definemap " ) )
1530+ if ( textLow . StartsWith ( "definemap " ) )
15291531 {
1530- clist . Add ( new LineTrackedString ( i , text , cleanStartCut + 2 ) ) ;
1532+ clist . Add ( new LineTrackedString ( i , textRaw , cleanStartCut + 2 ) ) ;
15311533 while ( i + 1 < Lines . Length )
15321534 {
15331535 string subLine = Lines [ i + 1 ] . Replace ( "\t " , " " ) ;
@@ -1543,13 +1545,13 @@ public Dictionary<LineTrackedString, object> GatherActualContainers()
15431545 }
15441546 else
15451547 {
1546- secwaiting = new LineTrackedString ( i , text [ ..^ 1 ] , cleanStartCut + 2 ) ;
1548+ secwaiting = new LineTrackedString ( i , textRaw [ ..^ 1 ] , cleanStartCut + 2 ) ;
15471549 buildingSubList = true ;
15481550 }
15491551 }
15501552 else
15511553 {
1552- clist . Add ( new LineTrackedString ( i , text , cleanStartCut + 2 ) ) ;
1554+ clist . Add ( new LineTrackedString ( i , textRaw , cleanStartCut + 2 ) ) ;
15531555 }
15541556 pspaces = spaces ;
15551557 continue ;
@@ -1885,7 +1887,7 @@ void procAsScript(List<object> list)
18851887 {
18861888 if ( entry is LineTrackedString str )
18871889 {
1888- procSingleCommand ( str . Text ) ;
1890+ procSingleCommand ( str . Text . ToLowerFast ( ) ) ;
18891891 }
18901892 else if ( entry is Dictionary < LineTrackedString , object > subMap )
18911893 {
0 commit comments