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

Function is_xml_name_start

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

Mirrors the start class of XML_NAME in grammar.js. Every non-ASCII character is accepted, since the letter test is ASCII-only and the internal lexer rejects the name if it is not a letter after all.

Source from the content-addressed store, hash-verified

298// character is accepted, since the letter test is ASCII-only and the internal
299// lexer rejects the name if it is not a letter after all.
300static bool is_xml_name_start(int32_t c) {
301 return is_alpha(c) || c == '_' || c > 127;
302}
303
304// An operator directly before one of these ends its expression, so no right
305// operand can follow and the operator is postfix.

Callers 1

scan_implFunction · 0.85

Calls 1

is_alphaFunction · 0.85

Tested by

no test coverage detected