18 Commits

Author SHA1 Message Date
1e390e0f44 修复 undef预编译错误 2024-10-04 21:10:36 +08:00
damc
a5d0c48b35 improvement78 Remove Option<> wrapper from ReadUtf8 arg.
There's no immediate usecase for distinguishing `Some`/`None`.
2023-02-07 19:17:57 +01:00
damc
ac2d169333 improvement78 Add Error::ReadUtf8 with testcase.
There are 6x LATIN1 bytes in a comment.
2023-02-07 18:57:08 +01:00
damc
f98cb6c5d7 improvement78 Testcase, plus String arg for Error:DefineNoArgs. 2023-02-07 17:47:20 +01:00
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