Skip to content

Commit fb92dda

Browse files
committed
fix: fix wrong decorations for token keys
1 parent 5dc8c75 commit fb92dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decoration-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default class DecorationManager {
122122
}
123123

124124
fullTokenKeys.forEach((key: string) => {
125-
const regEx = new RegExp(`\\b(${key})\\b(?!-)`, "g");
125+
const regEx = new RegExp(`\\b(${key})\\b(?!-|:)`, "g");
126126
let match;
127127

128128
while ((match = regEx.exec(text))) {

0 commit comments

Comments
 (0)