Expand description
A “partial” lexer which determines whether we’re inside an RC-block or a comment.
Structs§
- Lower
Lexer 🔒 LowerLexer
uses a Logos-generated scanner to identify braces and comments, and keeps track of whether we are in an RC-block or a comment. Other text is returned as-is.- State 🔒
- Keep track of whether we are in an RC-block, in a comment, or both.
Enums§
- Inner
Token 🔒 InnerToken
is the result of a “partial” lexer which only identifies enough tokens to determine whether we’re inside an RC-block or a comment. We do this in order to handle differing interpretations of ‘}’ within a comment; if the comment is inside an RC-block, then ‘}’ terminates the RC-block. But if the comment is not inside an RC-block, then ‘}’ is not special and forms part of the comment.- Lexeme 🔒
- This is the output of
LowerLexer
.