Menu

#575 Rust edit mode raw string fix

None
closed-accepted
None
5
2016-07-10
2015-10-24
No

Today, I happened to use a raw string that wasn't highlighted correctly in Rust. The problem was that using a . in a regex in SEQ_REGEXP does not match newlines, so I switched to using SPAN_REGEXP. I also added HASH_CHAR to a couple tags.

I updated the file I've been using for testing to include the string that wasn't highlighted correctly:
https://gist.github.com/jminer/401fafd13107d512a40f

1 Attachments

Discussion

  • Jordan Miner

    Jordan Miner - 2015-11-08

    I didn't notice that adding HASH_CHAR to the rule that highlights lifetimes broke the character literal rule. I've added HASH_CHARS to that rule and it works again. The first patch can be ignored, and this one used instead.

     
  • Alan Ezust

    Alan Ezust - 2016-07-10
    • status: open --> closed-accepted
    • assigned_to: Alan Ezust
    • Group: -->
     
  • Alan Ezust

    Alan Ezust - 2016-07-10

    Committed 24448

     

Log in to post a comment.