Skip to main content

is_in_comment_or_string

Function is_in_comment_or_string 

Source
pub fn is_in_comment_or_string(text: &str, byte_offset: usize) -> bool
Expand description

True when byte_offset lies inside a # line comment or any Turtle string literal.

Handles "…", '…', """…""", and '''…''' forms (same lexer rules as [statement_end_byte]).