Skip to content

Support %e and %k for diagnostic end positions - #309

Merged
mattn merged 1 commit into
masterfrom
add-end-position-support
Jul 8, 2026
Merged

Support %e and %k for diagnostic end positions#309
mattn merged 1 commit into
masterfrom
add-end-position-support

Conversation

@mattn

@mattn mattn commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Diagnostic ranges always ended on the start line at start column + word length, so %e (end line) and %k (end column) in lint-formats were parsed but ignored. Use them for the range end when present (end column treated as exclusive, matching eslint's endColumn), honoring lint-offset/lint-offset-columns, with a sanity fallback when the parsed end precedes the start. Fixes #287. Adds a test.

@mattn
mattn merged commit b852ab6 into master Jul 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support %e 'end line number' and %k 'end column number'

1 participant