MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / scan_block_content

Function scan_block_content

codegraph-kernel/grammars/lua/scanner.c:104–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static bool scan_block_content(Scanner *scanner, TSLexer *lexer) {
105 while (lexer->lookahead != 0) {
106 if (lexer->lookahead == ']') {
107 lexer->mark_end(lexer);
108
109 if (scan_block_end(scanner, lexer)) {
110 return true;
111 }
112 } else {
113 consume(lexer);
114 }
115 }
116
117 return false;
118}
119
120static bool scan_comment_start(Scanner *scanner, TSLexer *lexer) {
121 if (consume_char('-', lexer) && consume_char('-', lexer)) {

Callers 2

scan_comment_contentFunction · 0.85

Calls 2

scan_block_endFunction · 0.85
consumeFunction · 0.85

Tested by

no test coverage detected