Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [[CHORE]] Remove `lex.start` method This method simply proxies `lex.nextLine` to scan a single line of the program. It is currently only used to scan the very first line of input, which is problematic for two reasons: 1. Linting options have not yet been applied via the `assume` function, so linting options that effect the parser's behavior are not honored for this first line (see the unit test corrected in this patch for an example) 2. So-called "checks" for asynchronously-reported warnings on the first line cannot be associated with a token. This makes it impossible to issue warnings asynchronously for the first line. Because the `lex.token` method itself invokes `lex.nextLine`, these problems may be avoided by removing `lex.start` and deferring the invocation of `nextLine` until the first token is requested. * [[FIX]] Allow W100 to be ignored during lookahead Defer the reporting of warning W100 until parse time (using `triggerAsync`) so that it may be disabled via in-line directives even in contexts where a "lookahead" is taking place. * fixup! [[FIX]] Allow W100 to be ignored during lookahead
- Loading branch information
1 parent
6aee2fd
commit a2b3881
Showing
5 changed files
with
156 additions
and
65 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
Binary file not shown.
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
Oops, something went wrong.