Skip to content

Commit

Permalink
Merge pull request #90266 from bolinfest/match-only-at-line-start
Browse files Browse the repository at this point in the history
Fixes microsoft/monaco-editor#1818: check matchOnlyAtLineStart when e…
  • Loading branch information
alexdima authored Feb 10, 2020
2 parents 4988046 + 7207e8a commit ac11d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/standalone/common/monarch/monarchLexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ export class MonarchTokenizer implements modes.ITokenizationSupport {
}

let result = line.search(regex);
if (result === -1) {
if (result === -1 || (result !== 0 && rule.matchOnlyAtLineStart)) {
continue;
}

Expand Down

0 comments on commit ac11d00

Please sign in to comment.