Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for escape character matching #9

Open
juanitogan opened this issue Mar 17, 2017 · 0 comments
Open

Fix for escape character matching #9

juanitogan opened this issue Mar 17, 2017 · 0 comments
Assignees

Comments

@juanitogan
Copy link

The current language file uses this for matching escape sequences:

<string>\\.</string>

If you turn off the PICO-8 theme, you will see that decimal and hex escape sequences aren't fully colorized. This fixes it (adapted from the latest Lua highlighter):

<string>\\([abfnrtv\\"']|\r?\n|\n\r?|\d\d?\d?|[xX][0-9a-fA-F]{2})</string>

Replace both occurrences in PICO-8.tmLanguage.

@wh0am1-dev wh0am1-dev self-assigned this Jul 18, 2017
sparr pushed a commit to sparr/sublime-PICO-8 that referenced this issue Feb 11, 2020
AdamNorberg added a commit to AdamNorberg/sublime-PICO-8 that referenced this issue Jan 1, 2023
Adopts patch in issue wh0am1-dev#9. Closes wh0am1-dev#9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants