ionide / ionide-fsgrammar

Shared Textmate Regex Style F# Language Grammar
MIT License
35 stars 36 forks source link

Include `.`s and `?`s in custom operators #216

Closed brianrourkeboll closed 1 month ago

brianrourkeboll commented 3 months ago

Many valid custom symbolic operators currently show discontinuous highlighting when they include .s and ?s, e.g.,

+.+
-.-.-
????*????
.&.

Screenshot of GitHub before

image

This updates the grammar to include contiguous .s and ?s in operator names.[^1]

Before

Screenshot 2024-06-11 084039

image

After

Screenshot 2024-06-11 084056

image

[^1]: The regex still doesn't actually segment operators according to spec, but it's good enough for highlighting.

baronfel commented 1 month ago

Thanks! Sorry for the delay here. working on an Ionide update to include this and other updates now.