mirror of https://github.com/Wilfred/difftastic/
Replace tabs with spaces before parsing
Difftastic uses offsets to store the positions of AST nodes, so we cannot replace tabs after parsing. A string literal with a tab character " " being replaced by a four space string literal " " is now ignored by difftastic. This is wrong: difftastic should only ignore whitespace between atoms. This is still an improvement for source code that uses tab characters, which is common in Go. The above case should be rare until we have a full solution. Fixes #24ida_star
parent
a7f688ee82
commit
6f2140e901
Loading…
Reference in New Issue