hyprwm / Hypr

Hypr is a tiling window manager written in modern C++.
BSD 3-Clause "New" or "Revised" License
1.06k stars 32 forks source link

Added escaping of `{`, `}` and `$` #74

Closed Jovvik closed 2 years ago

Jovvik commented 2 years ago

This PR adds escaping of special symbols.

It's not currently possible to use $, { or } inside $COMMANDTOKEN$s, which is what this PR fixes. Whenever the parser encounters one of these symbols, it checks whether a \ precedes them, and if that is true, it treats those symbols literally.

A couple caveats:

vaxerski commented 2 years ago

lgtm, thank you!