Skip to content

Commit e51be17

Browse files
committed
Fix kv value not identifying negative numbers in highlighter
1 parent e5bd2f7 commit e51be17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/language/LangKv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class KeyvalueSemanticTokensProvider extends KvTokensProviderBase {
4343
protected keyProcessors: KvSemanticProcessor[] = [];
4444
protected valueProcessors: KvSemanticProcessor[] =
4545
[
46-
{ regex: /^\d+(\.\d+)?$/, processor: this.processValueNumber },
46+
{ regex: /^-?\d+(\.\d+)?$/, processor: this.processValueNumber },
4747
{ regex: matrixRegExp, processor: this.processValueArray }
4848
];
4949

0 commit comments

Comments
 (0)