forked from VirusTotal/gyp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle undefined string identifiers. (VirusTotal#54)
When parsing rules gyp does not complain about undefined string identifiers. For example, it does not error when parsing this rule: rule a { condition: $x } With these changes it now walks the condition AST and makes sure all string references are valid, including wildcard expansion. While I'm here I uncovered a slight error with the Children() method on the Of node, where it would always set the Strings to nil if there were none, which is now fixed. I also discovered some existing tests that were broken by this (they did not have a $foo4 string defined) so I "fixed" those too.
- Loading branch information
Showing
6 changed files
with
669 additions
and
169 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
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.