Class: Yard::Lint::Validators::Warnings::SyntaxError::Parser
- Inherits:
-
Parsers::OneLineBase
- Object
- Parsers::Base
- Parsers::OneLineBase
- Yard::Lint::Validators::Warnings::SyntaxError::Parser
- Defined in:
- lib/yard/lint/validators/warnings/syntax_error/parser.rb
Overview
Parser for SyntaxError warnings.
YARD reports a parse failure as a single warning line of the form:
Syntax error in `path/to/file.rb`:(LINE,COL): <description>
(a sibling ‘ParserSyntaxError:` line and a stack trace are also emitted, but the `general` pattern matches only the first so each failure yields exactly one offense).