Skip to content

Commit

Permalink
Add result count line. Closes #89463.
Browse files Browse the repository at this point in the history
And fixup grammar to correctly highlight it
  • Loading branch information
Jackson Kearl committed Feb 7, 2020
1 parent 4d35421 commit 4e81d10
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 61 deletions.
4 changes: 2 additions & 2 deletions extensions/search-result/syntaxes/generateTMLanguage.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ mappings.forEach(([ext, scope, regexp]) =>
{
name: [scopes.resultBlock.result.meta, scopes.resultBlock.result.metaMultiLine].join(' '),
begin: "^ ((\\d+) )",
while: "^ ((\\d+)(:))|((\\d+) )",
while: "^ (?:((\\d+)(:))|((\\d+) ))",
beginCaptures: {
"0": { name: scopes.resultBlock.result.prefix.meta },
"1": { name: scopes.resultBlock.result.prefix.metaContext },
Expand Down Expand Up @@ -215,7 +215,7 @@ const plainText = [
}
},
{
match: "^ ((\\d+)(:))|((\\d+)( ))(.*)",
match: "^ (?:((\\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(' ') },
Expand Down

0 comments on commit 4e81d10

Please sign in to comment.