{"record":{"id":"5d65500efb122cbd","repo":"rouge-ruby/rouge","slug":"unknown-token-tok-inspect","errorCode":null,"errorMessage":"unknown token: #{tok.inspect}","messagePattern":"unknown token: #(.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"lib/rouge/theme.rb","lineNumber":191,"sourceCode":"      yield \"#{@scope} table pre { margin: 0; }\"\n\n      styles.each do |tok, style|\n        Style.new(self, style).render(css_selector(tok), &b)\n      end\n    end\n\n    def render_base(selector, &b)\n      self.class.base_style.render(selector, &b)\n    end\n\n    def style_for(tok)\n      self.class.get_style(tok)\n    end\n\n  private\n    def css_selector(token)\n      inflate_token(token).map do |tok|\n        raise \"unknown token: #{tok.inspect}\" if tok.shortname.nil?\n\n        single_css_selector(tok)\n      end.join(', ')\n    end\n\n    def single_css_selector(token)\n      return @scope if token == Text\n\n      \"#{@scope} .#{token.shortname}\"\n    end\n\n    # yield all of the tokens that should be styled the same\n    # as the given token.  Essentially this recursively all of\n    # the subtokens, except those which are more specifically\n    # styled.\n    def inflate_token(tok, &b)\n      return enum_for(:inflate_token, tok) unless block_given?\n","sourceCodeStart":173,"sourceCodeEnd":209,"githubUrl":"https://github.com/rouge-ruby/rouge/blob/bd7dad7b0939c556e582a0370686f6fc022c8af5/lib/rouge/theme.rb#L173-L209","documentation":"Error \"unknown token: #{tok.inspect}\" thrown in rouge-ruby/rouge.","triggerScenarios":"Thrown at lib/rouge/theme.rb:191 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bd7dad7b0939c556e582a0370686f6fc022c8af5","analyzedAt":"2026-08-23T11:34:50.713Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}