-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
Currently, language-haskell sets the word pattern to
language-haskell/src/extension.ts
Line 17 in d20d1c7
wordPattern: /([\w'_][\w'_\d]*)|([0-9]+\.[0-9]+([eE][+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+)/ |
Would be nice to use something that matches the syntax definition itself, f.ex.
/(?:[\p{Ll}_\p{Lu}\p{Lt}][\p{Ll}_\p{Lu}\p{Lt}\p{Nd}']*)|(?:[\p{S}\p{P}](?<![(),;\[\]`{}_"']))+/u
Feel free to omit operator regex if you feel it's extraneous, I'm on the fence about it.
Side note: numbers are apparently filtered by vscode anyway, so matching on numeric literals is kinda pointless.
Metadata
Metadata
Assignees
Labels
No labels