Skip to content

Improper regex in VSCode extension #2575

@RedCMD

Description

@RedCMD

\x is the character null \0 not hexadecimal
should use hexadecimal \h instead
or [a-fA-F0-9] (if you want to be explicit as \h is horizontal whitespace in some regex engines)

Image

match: ([0-9]+|0b[01]+|0o[0-8]+|0x\x+)

here's my VSCode extension to help with authoring TextMate grammars https://marketplace.visualstudio.com/items?itemName=RedCMD.tmlanguage-syntax-highlighter

Metadata

Metadata

Assignees

Labels

BugThe observed behaviour is incorrect or unexpected.C-Low Hanging FruitIdeal issue for new contributors.S-Nice to haveThe bug fix or feature would be nice but doesn't currently have much negative impact.T-EditorsInvolves editor support.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions