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

Function detect_comment_start

codegraph-kernel/grammars/scala/scanner.c:228–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228static bool detect_comment_start(TSLexer *lexer) {
229 lexer->mark_end(lexer);
230 // Comments should not affect indentation
231 if (lexer->lookahead == '/') {
232 advance(lexer);
233 if (lexer->lookahead == '/' || lexer -> lookahead == '*') {
234 return true;
235 }
236 }
237 return false;
238}
239
240static bool scan_word(TSLexer *lexer, const char* const word) {
241 for (uint8_t i = 0; word[i] != '\0'; i++) {

Calls 1

advanceFunction · 0.70

Tested by

no test coverage detected