janet-lang / janet-lang.org

Website for janet
https://janet-lang.org
MIT License
90 stars 59 forks source link

Update and ascii-sort string escapes in peg #193

Closed sogaiu closed 11 months ago

sogaiu commented 1 year ago

Some escape sequences were added to Janet in d6337e77. This PR is an attempt to update the PEG for Janet on the syntax page.

As the number of items is increasing, it seemed prudent to sort the items to make maintenance easier (e.g. avoidance of duplicates, locating a particular item, etc.). The sorting order chosen was based on what was found via the ascii(7) man page.

In an attempt to reduce the amount of "backslashing", also changed the string delimiter to backtick.