A parserDefinition may use either parser or parser2, never both (and not neither). The difference is whether the parser is a "simple parser" or "rescanning parser". The findCTags parser can rescan with a different brace format if the first, normal, pass fails.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, from the source code c.c, I found that there are code like:
I just wondering that why the parser2 is used? it seems the parser field is left, it is default set to NULL?
thanks.
By the way, from the
http://ctags.sourceforge.net/EXTENDING.html
it seems that the "parser" field should be filled like:
So, why c/c++ parser use "parser2" field???
thanks.
A parserDefinition may use either parser or parser2, never both (and not neither). The difference is whether the parser is a "simple parser" or "rescanning parser". The findCTags parser can rescan with a different brace format if the first, normal, pass fails.