14 Commits

Author SHA1 Message Date
damc
f9e93d18bd ppErrorPreprocess Make use of the existing Error::Preprocess
Before this commit, inputs with invalid pp syntax are reported using
`Error::Parse` which is also used to report invalid post-pp syntax.
In svlint/svls, `Error::Parse` is reported to the user as "parse error"
without specifying if that's pre or post pp.
This commit makes it possible for future versions of svlint/svls to report
"preprocess error", thus helping users to identify pp issues.

- `Error::Preprocess` appears to be defined but unused.
- Add the argument `Option<(PathBuf, usize)>` to `Error::Preprocess`, same
  as `Error::Parse`.
- Update `preprocess_str()` to use `Error::Preprocess` in all 5 instances.
2022-10-26 19:43:23 +02:00
dalance
f500434e60 Improve IO error message 2020-03-12 21:13:31 +09:00
dalance
fde27fe7c2 Change error type 2020-01-23 16:36:28 +09:00
dalance
6fdc341ed7 Add include line check 2019-12-12 18:49:01 +09:00
dalance
bd4b28868a Allow recursive define until limit 2019-12-12 10:26:03 +09:00
dalance
2ed9e55234 Add recursive define detection 2019-12-10 11:54:38 +09:00
dalance
a2c265f5b7 Fix bugs 2019-11-06 17:44:19 +09:00
dalance
07461243a5 Add empty define support 2019-11-05 20:40:47 +09:00
dalance
e1fe0cd719 Fix error msg 2019-10-29 15:38:13 +09:00
dalance
da55a54420 Change Error::Parse 2019-10-16 17:07:51 +09:00
dalance
5049b5c0d8 Add parse error position 2019-10-16 14:20:23 +09:00
dalance
917e4bac5e Add error type 2019-09-18 17:28:07 +09:00
dalance
dc9669ceb9 Update error 2019-09-17 18:58:17 +09:00
dalance
6428d5ae1a Add sv-parser-error 2019-09-12 19:15:55 +09:00