Menu

#1919 Rust markup error on 'usize' suffix

Bug
closed-fixed
nobody
4
2017-08-16
2017-03-06
Bewied
No

Small reproducing example:

static SOMETHING : usize = 4usize;

Here, the 4usize doesn't get parsed correctly, and geany (which uses scintilla to do all the parsing) only marks 4us as the number, apparently parsing ize as a different, stand-alone identifier.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2017-03-06
    • status: open --> open-accepted
    • Priority: 5 --> 4
     
  • SiegeLord

    SiegeLord - 2017-06-08

    Here's a patch to fix this. See https://doc.rust-lang.org/stable/reference/tokens.html#suffixes for the allowed suffixes. Note that this patch removes the ability to parse the old 'is' and 'us' suffixes, but those are from pre 1.0 Rust, so nobody should care for their disappearance.

     
  • Neil Hodgson

    Neil Hodgson - 2017-06-10
    • status: open-accepted --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2017-06-10

    Committed as [0577ec].

     

    Related

    Commit: [0577ec]

  • Neil Hodgson

    Neil Hodgson - 2017-08-16
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB