ALSchwalm / janet-mode

A major mode for the janet programming language: https://janet-lang.org/
GNU General Public License v3.0
47 stars 14 forks source link

fix for `\` #11

Open yrns opened 3 years ago

yrns commented 3 years ago

This fixes the highlighting for `\` or any literal string ending in a backslash.

sogaiu commented 3 years ago

Here's a sample where the problem can be observed:

`\`

`\`

Without the code in the PR, the highlighting of the two backslashes differs.

With the code, the highlighting looks the same here.

I guess #12 is another attempt to address this issue.