MCPcopy Create free account
hub / github.com/csskit/csskit / is_ident_start_sequence

Function is_ident_start_sequence

crates/css_lexer/src/syntax/identifier.rs:53–58  ·  view source on GitHub ↗
(c: char, c2: char, c3: char)

Source from the content-addressed store, hash-verified

51
52#[inline(always)]
53pub fn is_ident_start_sequence(c: char, c2: char, c3: char) -> bool {
54 if c == '-' {
55 return c2 == '-' || is_ident_start(c2) || is_escape_sequence(c2, c3);
56 }
57 is_ident_start(c) || is_escape_sequence(c, c2)
58}

Callers 2

consume_numeric_tokenMethod · 0.85
read_next_tokenMethod · 0.85

Calls 2

is_ident_startFunction · 0.85
is_escape_sequenceFunction · 0.85

Tested by

no test coverage detected