Skip to content

Commit

Permalink
Format file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gael-Lopes-Da-Silva committed Nov 2, 2024
1 parent b454f5f commit d96a5bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function listKeywords() {

if (earliestMatch && earliestKeyword) {
const line = lineStartLine + 1;

const contentInEnclosure = earliestMatch[2] ? ` ${earliestMatch[2].trim()}` : "";
const contentAfterSymbol = earliestMatch[3] ? ` ${earliestMatch[3].trim()}` : "";
const textAfterColon = earliestMatch[4] ? earliestMatch[4].trim() : "";
Expand All @@ -212,7 +212,7 @@ function listKeywords() {

if (config.blockComment) {
const blockRegex = new RegExp(`${escapeRegex(config.blockComment[0])}[\\s\\S]*?${escapeRegex(config.blockComment[1])}`, 'g');

let match;
while ((match = blockRegex.exec(text))) {
const blockStart = match.index;
Expand Down Expand Up @@ -296,7 +296,7 @@ function updateDecorations() {
const lineStart = match.index;

const keywordRegex = new RegExp(`\\b${keyword}\\b`, 'g');

let keywordMatch;
while ((keywordMatch = keywordRegex.exec(lineText))) {
const startPos = activeTextEditor.document.positionAt(lineStart + keywordMatch.index);
Expand Down

0 comments on commit d96a5bc

Please sign in to comment.