File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Describe "Syntax highlighting" {
1717 }
1818
1919 # splitted in two lines, because of a bug in Sort-Object
20- $stScopes = cat - Raw $scopesFile | ConvertFrom-Json ; $stScopes = $stScopes | sort - Property @ ( ' startOffset ' , ' endOffset ' )
20+ $stScopes = Get-SublimeScopesFromFile $scopesFile
2121 # tokens are already sorted
2222 $psScopes = Get-TokensFromFile $testFile | Convert-TokenToScope
2323
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ function Get-SublimeScopesFromFile
1818 [string ] $filePath
1919 )
2020
21- # splitted in two lines, because of a bug in Sort-Object
2221 $scopes = cat - Raw $filePath | ConvertFrom-Json
2322 $scopes = $scopes | sort - Property @ (' startOffset' , ' endOffset' )
2423 return $scopes
You can’t perform that action at this time.
0 commit comments