forked from universal-ctags/ctags
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider for instance the following HTML code where a subparser is called on the contents of the <script> tags. <script language="Javascript" src="./test.js"></script> <script language="JavaScript"> ... </script> Since the first <script> is empty, mio_new_mio() is called with 0 size but with the current semantics of the API it creates MIO until the end of the file so the whole source file to EOF is parsed. While it seems no extra tags are generated in this case, the parsing happens unnecessarily. Instead of using 0, make size signed and use -1 when we want to create a MIO till the end of the source MIO.
- Loading branch information
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters