Merge pull request #466 from kaalibro/syntax-highlighter-num-regex

fix: PromptHighlight "number" regex to exlude numbers before words
pull/472/head
kaalibro 2023-11-23 19:13:58 +06:00 committed by GitHub
commit 361ae84698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 48 deletions

File diff suppressed because one or more lines are too long

View File

@ -45,7 +45,7 @@
"name": "bracket"
},
{
"match": "(?<!\\w)(\\d*\\.?\\d+|\\.\\d+)",
"match": "(?<!\\w)(\\d*\\.?\\d+|\\.\\d+)(?!\\w)",
"name": "number"
},
{