Skip to content

Commit 7cc2fa3

Browse files
committed
refactor: match on patterns with a colon in additon to equals
1 parent f5449b0 commit 7cc2fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/completion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
2727
readonly files = new Map<string, string>();
2828
readonly watchers = new Map<string, Disposable>();
2929
readonly isRemote = /^https?:\/\//i;
30-
readonly canComplete = /(id|class|className)\s*=\s*("|')(?:(?!\2).)*$/is;
30+
readonly canComplete = /(id|class|className)\s*[=:]\s*("|')(?:(?!\2).)*$/is;
3131
readonly findLinkRel = /rel\s*=\s*("|')((?:(?!\1).)+)\1/is;
3232
readonly findLinkHref = /href\s*=\s*("|')((?:(?!\1).)+)\1/is;
3333
readonly findExtended = /(?:{{<|{{>|{%\s*extends|@extends\s*\()\s*("|')?([./A-Za-z_0-9\\\-]+)\1\s*(?:\)|%}|}})/i;

0 commit comments

Comments
 (0)