urbit / urbit.org

The source for urbit.org
https://urbit.org
MIT License
93 stars 197 forks source link

hoon syntax highlighter doesn't handle escaped double-quotes in tapes #770

Closed tinnus-napbus closed 2 years ago

tinnus-napbus commented 3 years ago

if you have a tape in some hoon code like "blah\"blah", it doesn't treat the middle double-quote as being escaped, so it ends the tape there, then starts a new tape at the next one that swallows the rest of your code.

matildepark commented 2 years ago

PR'd to upstream Prism dependency - https://github.com/PrismJS/prism/pull/3473

Closing as not relevant to this repo, when we update the dependency this will be remedied. But you can see here it works:

before -

Screen Shot 2022-06-13 at 7 10 40 PM

after -

Screen Shot 2022-06-13 at 7 10 30 PM