{"record":{"id":"b86acde390efbdc6","repo":"rouge-ruby/rouge","slug":"regexlexer-group-is-deprecated-use-groups-instea","errorCode":null,"errorMessage":"RegexLexer#group is deprecated: use #groups instead","messagePattern":"RegexLexer#group is deprecated: use #groups instead","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"lib/rouge/regex_lexer.rb","lineNumber":565,"sourceCode":"    end\n\n    # Yield a token.\n    #\n    # @param tok\n    #   the token type\n    # @param val\n    #   (optional) the string value to yield.  If absent, this defaults\n    #   to the entire last match.\n    def token(tok, val=@current_stream[0])\n      yield_token(tok, val)\n    end\n\n    # @deprecated\n    #\n    # Yield a token with the next matched group.  Subsequent calls\n    # to this method will yield subsequent groups.\n    def group(tok)\n      raise \"RegexLexer#group is deprecated: use #groups instead\"\n    end\n\n    # Yield tokens corresponding to the matched groups of the current\n    # match.\n    def groups(*tokens)\n      tokens.each_with_index do |tok, i|\n        yield_token(tok, @current_stream[i+1])\n      end\n    end\n\n    # Delegate the lex to another lexer. We use the `continue_lex` method\n    # so that #reset! will not be called.  In this way, a single lexer\n    # can be repeatedly delegated to while maintaining its own internal\n    # state stack.\n    #\n    # @param [#lex] lexer\n    #   The lexer or lexer class to delegate to\n    # @param [String] text","sourceCodeStart":547,"sourceCodeEnd":583,"githubUrl":"https://github.com/rouge-ruby/rouge/blob/bd7dad7b0939c556e582a0370686f6fc022c8af5/lib/rouge/regex_lexer.rb#L547-L583","documentation":"Error \"RegexLexer#group is deprecated: use #groups instead\" thrown in rouge-ruby/rouge.","triggerScenarios":"Thrown at lib/rouge/regex_lexer.rb:565 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"}