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

Function scan_comment_start

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

Source from the content-addressed store, hash-verified

118}
119
120static bool scan_comment_start(Scanner *scanner, TSLexer *lexer) {
121 if (consume_char('-', lexer) && consume_char('-', lexer)) {
122 lexer->mark_end(lexer);
123
124 if (scan_block_start(scanner, lexer)) {
125 lexer->mark_end(lexer);
126 lexer->result_symbol = BLOCK_COMMENT_START;
127 return true;
128 }
129 }
130
131 return false;
132}
133
134static bool scan_comment_content(Scanner *scanner, TSLexer *lexer) {
135 if (scanner->ending_char == 0) { // block comment

Callers 1

Calls 2

consume_charFunction · 0.85
scan_block_startFunction · 0.85

Tested by

no test coverage detected