[Search Editor] Align results from the same file

This commit is contained in:
Jackson Kearl
2020-03-02 16:28:38 -08:00
parent 24a5df3cc3
commit 2158b1aa65
3 changed files with 174 additions and 175 deletions

View File

@@ -113,8 +113,8 @@ mappings.forEach(([ext, scope, regexp]) =>
patterns: [
{
name: [scopes.resultBlock.result.meta, scopes.resultBlock.result.metaMultiLine].join(' '),
begin: '^ ((\\d+) )',
while: '^ (?:((\\d+)(:))|((\\d+) ))',
begin: '^ (?:\\s*)((\\d+) )',
while: '^ (?:\\s*)(?:((\\d+)(:))|((\\d+) ))',
beginCaptures: {
'0': { name: scopes.resultBlock.result.prefix.meta },
'1': { name: scopes.resultBlock.result.prefix.metaContext },
@@ -132,7 +132,7 @@ mappings.forEach(([ext, scope, regexp]) =>
patterns: [{ include: scope }]
},
{
begin: '^ ((\\d+)(:))',
begin: '^ (?:\\s*)((\\d+)(:))',
while: '(?=not)possible',
name: [scopes.resultBlock.result.meta, scopes.resultBlock.result.metaSingleLine].join(' '),
beginCaptures: {
@@ -214,7 +214,7 @@ const plainText = [
}
},
{
match: '^ (?:((\\d+)(:))|((\\d+)( ))(.*))',
match: '^ (?:\\s*)(?:((\\d+)(:))|((\\d+)( ))(.*))',
name: [scopes.resultBlock.meta, scopes.resultBlock.result.meta].join(' '),
captures: {
'1': { name: [scopes.resultBlock.result.prefix.meta, scopes.resultBlock.result.prefix.metaMatch].join(' ') },