Don't mark error nodes created in the error state as extras
This commit is contained in:
parent
c14a776a3d
commit
5b4e6df3ff
2 changed files with 8 additions and 10 deletions
12
spec/fixtures/error_corpus/c_errors.txt
vendored
12
spec/fixtures/error_corpus/c_errors.txt
vendored
|
|
@ -23,20 +23,18 @@ int c;
|
|||
---
|
||||
|
||||
(translation_unit
|
||||
(preproc_ifdef
|
||||
(identifier)
|
||||
(ERROR (identifier) (identifier) (comment)))
|
||||
(preproc_ifdef (identifier)
|
||||
(ERROR (identifier) (identifier))
|
||||
(comment))
|
||||
|
||||
(declaration (identifier) (identifier))
|
||||
|
||||
(preproc_ifdef
|
||||
(identifier)
|
||||
(preproc_ifdef (identifier)
|
||||
(ERROR (storage_class_specifier) (string_literal)))
|
||||
|
||||
(declaration (identifier) (identifier))
|
||||
|
||||
(preproc_ifdef
|
||||
(identifier)
|
||||
(preproc_ifdef (identifier)
|
||||
(ERROR))
|
||||
|
||||
(declaration (identifier) (identifier)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue