MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / is_id

Function is_id

js/SCAST.js:64–66  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

62 return /[a-zA-Z$_]/i.test(ch);
63 }
64 function is_id(ch) {
65 return is_id_start(ch) || "0123456789".indexOf(ch) >= 0;
66 }
67 function is_op_char(ch) {
68 return "+-*/%=&|<>!^\\".indexOf(ch) >= 0;// \ for 正则
69 }

Callers 5

parse_argFunction · 0.70
parse_conditionFunction · 0.70
until_next_kwFunction · 0.70
parse_newFunction · 0.70
parse_expressionFunction · 0.70

Calls 1

is_id_startFunction · 0.70

Tested by

no test coverage detected