MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / scan_string

Method scan_string

compiler/src/modules/lexer/scan.rs:151–158  ·  view source on GitHub ↗
(&mut self, quote: u8, start: usize)

Source from the content-addressed store, hash-verified

149 // Strings: single, double, triple-quoted (escape-aware).
150
151 fn scan_string(&mut self, quote: u8, start: usize) {
152 if self.at(0) == Some(quote) && self.at(1) == Some(quote) {
153 self.pos += 2;
154 self.scan_triple_string(quote, start);
155 } else {
156 self.scan_single_string(quote, start);
157 }
158 }
159
160 fn scan_single_string(&mut self, quote: u8, start: usize) {
161 while self.pos < self.src.len() {

Callers 1

next_tokenMethod · 0.80

Calls 3

scan_triple_stringMethod · 0.80
scan_single_stringMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected