Expand description
Shared code scanner for skipping string literals, char literals, and comments.
EnumsΒ§
- LexState π
ConstantsΒ§
- RAW_
DELIMITER_ πBYTES
FunctionsΒ§
- char_
positions π - Return the byte offsets of every occurrence of
targetinline, skipping string and char literals. - code_
only π - Return a copy of
linewith string literals, char literals, and trailing//comments stripped out. - directive_
source_ πlines - Hide directive-shaped text that is not a standalone source comment.
- line_
comment_ πstarts - Return the byte column where each source lineβs real
//comment starts. - raw_
string_ πclose - raw_
string_ πopen - skip_
char_ πliteral - Skip a character literal, assuming the opening
'is already consumed. - skip_
raw_ πstring - Skip past a raw string literal with
hashesclosing#, opening"already consumed. - skip_
string π - Skip past a
"..."string literal, assuming the opening"is already consumed. - try_
skip_ πraw_ string - Consume a raw string prefix and body after an
r,trueif one was consumed.