intellij-diff-plugin
intellij-diff-plugin copied to clipboard
False positive syntax errors
If you open this patch, second file name will be highlighted as if there is a syntax error:
DiffTokenType.EOL_HINT, DiffTokenType.OTHER, DiffTokenType.UNIFIED_COMMON_LINE, DiffTokenType.UNIFIED_DELETED_LINE, DiffTokenType.UNIFIED_INSERTED_LINE, DiffTokenType.UNIFIED_LINE_NUMBERS or DiffTokenType.WHITE_SPACE expected, got '--- a/base/time/time...'
Plugin version: v2.1.1 IntelliJ IDEA 2019.1 Beta (Ultimate Edition)
Thanks for the report, I'll look into it.
It's trickier than I thought. Unfortunately the diff format is a beast, not well-suited for the JFlex lexer generator, which this plugin is using.
If anyone wants to help, PRs are welcome.