Skip to content

Specification and Grammar incomplete with regards to lexing rules #24272

Closed
@bruno-medeiros

Description

@bruno-medeiros

Both the reference (http://doc.rust-lang.org/reference.html#lexical-structure) and the grammar reference (http://doc.rust-lang.org/grammar.html#lexical-structure) are very incomplete with regards to the lexing rules. For example:

  • lifetimes token not documented
  • attributes token not documented
  • character/string literal token rules are incomplete, they do not seem to specify the b/br# prefixes for character and string literals.

I'm writing a lexer for an IDE (to do syntax highlighting), and since I'm not yet familar with Rust itself, this makes my life a bit harder...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions