Fix parsing with sub-parsers
commit9b44e9fa422136bf1178b71ad8de6ebee652431e
authorJiří Techet <techet@gmail.com>
Sat, 13 Oct 2018 11:33:23 +0000 (13 13:33 +0200)
committerJiří Techet <techet@gmail.com>
Sat, 13 Oct 2018 11:33:23 +0000 (13 13:33 +0200)
treef00d8eb13a782646385d5e97b0bf2a241fa10562
parentbf4eb8f093ddcf8abec947397ab57a8bb8108800
Fix parsing with sub-parsers

The previous code would skip parsing with sub-parsers so these would not
work. Running full createTagsWithFallback1() in this case would cause
two problems:

1. We would have to propagate the extra callback arguments to
runParserInNarrowedInputStream()

2. And the callbacks after each pass should not actually be called in this
case because the caller expects these are called for the master parser,
not the sub-parsers.

So instead just do simple parsing without re-tries which are used only in
the C and Fortran parsers which lack sub-parser capability anyway.
ctags/main/parse.c