Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First, when `begin` is parsed, the end of line `\n` is not eaten up. In fact, there may be code following after `begin` on the same line; this is placed after xpp in the line after `begin`. If nothing follows the `begin` statement on the same line, an empty line is added. This means, that `linenum` must __not__ increased here; it is increased when the `\n` of this line is found. Similar argument for parsing a `task` line; `linenum` must __not__increased here as well. Also, when processing include files, an additional '\n' was included, which is later counted. To revert this effect, linenum has to be decreased here as well. When parsing `.help` ... `.endhelp` however, one `linenum` increase was missing, which is added now.
- Loading branch information
Showing
3 changed files
with
3 additions
and
2 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