dotenv-vscode icon indicating copy to clipboard operation
dotenv-vscode copied to clipboard

Add syntax highlighting / textmate scope for numbers (again)

Open ShadowCreator250 opened this issue 2 years ago • 0 comments

Apparently, this extension doesn't recognize numbers (anymore). I know from #27 that it once had this feature. Numbers are now only recognized as simple properties (Command Palette > Developer: Inspect Editor Tokens and Scopes): Result of running "Developer: Inspect Editor Tokens and Scopes"

Is it possible to match only numbers with 1 . in them? This would prevent #27.

A suitable (partial) regex could look something like this: ([+-]?)([0-9]([0-9_]*[0-9])?)(\.[0-9]([0-9_]*[0-9])?)?$

ShadowCreator250 avatar Oct 28 '23 22:10 ShadowCreator250