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

Function scan_block_end

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

Source from the content-addressed store, hash-verified

90}
91
92static bool scan_block_end(Scanner *scanner, TSLexer *lexer) {
93 if (consume_char(']', lexer)) {
94 uint8_t level = consume_and_count_char('=', lexer);
95
96 if (scanner->level_count == level && consume_char(']', lexer)) {
97 return true;
98 }
99 }
100
101 return false;
102}
103
104static bool scan_block_content(Scanner *scanner, TSLexer *lexer) {
105 while (lexer->lookahead != 0) {

Callers 2

scan_block_contentFunction · 0.85

Calls 2

consume_charFunction · 0.85
consume_and_count_charFunction · 0.85

Tested by

no test coverage detected