{"record":{"id":"ce4de2ba9d1bf9b4","repo":"swc-project/swc","slug":"expected-string-or-ident-tokens","errorCode":null,"errorMessage":"Expected 'string' or 'ident' tokens","messagePattern":"Expected 'string' or 'ident' tokens","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/swc_css_parser/src/parser/values_and_units/mod.rs","lineNumber":3337,"sourceCode":"                loop {\n                    self.input.skip_ws();\n\n                    if !is!(self, \"ident\") {\n                        break;\n                    }\n\n                    value.push(self.parse()?);\n                }\n\n                Ok(FamilyName::SequenceOfCustomIdents(SequenceOfCustomIdents {\n                    span: span!(self, span.lo),\n                    value,\n                }))\n            }\n            _ => {\n                let span = self.input.cur_span();\n\n                return Err(Error::new(\n                    span,\n                    ErrorKind::Expected(\"'string' or 'ident' tokens\"),\n                ));\n            }\n        }\n    }\n}\n\npub(crate) fn is_math_function(name: &Atom) -> bool {\n    matches_eq_ignore_ascii_case!(\n        name,\n        \"calc\",\n        \"-moz-calc\",\n        \"-webkit-calc\",\n        \"sin\",\n        \"cos\",\n        \"tan\",\n        \"asin\",","sourceCodeStart":3319,"sourceCodeEnd":3355,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_css_parser/src/parser/values_and_units/mod.rs#L3319-L3355","documentation":"Fired by the FamilyName parser: a font family name must be either a quoted string or a sequence of custom idents, but the current token is neither. The parser cannot build a FamilyName node from this token.","triggerScenarios":"Thrown at crates/swc_css_parser/src/parser/values_and_units/mod.rs:3337 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Quote multi-word family names: font-family: \"Helvetica Neue\"","Use valid identifiers for unquoted names and avoid leading digits"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5176682b65416c6b5de6b47379ae1588ea3ecb3f","analyzedAt":"2026-08-17T16:16:52.067Z","contentChangedAt":"2026-08-17T16:16:52.067Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}