Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preprocessor: Indent error location info on a separate line
Messages such as: > Quoted string not terminated at ~add-ons/Foo/bar.cfg > Macro/file 'FOOBAR' is missing at ~add-ons/Baz/bat.cfg:12 included from ~add-ons/Baz/bag.cfg:2 included from ~add-ons/Baz/ban.cfg:42 Now are formatted as: > Quoted string not terminated > at ~add-ons/Foo/bar.cfg > Macro/file 'FOOBAR' is missing > at ~add-ons/Baz/bat.cfg:12 > included from ~add-ons/Baz/bag.cfg:2 > included from ~add-ons/Baz/ban.cfg:42 For messages that include the {} substitution trail, this improves readability by making the trail a sequence of lines with file locations rather than a massive opaque and unreadable text wall: > Macro/file 'FOOBAR' is missing at ~add-ons/After_the_Storm//macros/scenario-segment-implementation.cfg:61 included from ~add-ons/After_the_Storm/base-loader.cfg:6 included from ~add-ons/After_the_Storm/_main.cfg:174 included from ~add-ons/After_the_Storm/base-loader.cfg:75 included from [...] In fact, it's that particular case that motivated this report format change. Cases where there is no substitution trail but there is still a file location pointer are covered by this commit too mainly for the sake of consistency and readability -- being able to see the last (first) relevant location pointer first on a separate line should make it easier to debug most WML issues.
- Loading branch information