-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve some grammar ambiguities (#2280)
* Resolve ambiguities in storm parser et al Resolve ambiguity with yield statement and dollar expressions inside filter expression.
- Loading branch information
Nic Watson
committed
Jul 13, 2021
1 parent
2eeaebe
commit a857825
Showing
4 changed files
with
34 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import synapse.lib.storm_format as s_storm_format | ||
import synapse.lib.parser as s_parser | ||
|
||
from synapse.tests.test_lib_grammar import _Queries | ||
from synapse.tests.test_lib_grammar import Queries | ||
|
||
def test_highlight_storm(): | ||
|
||
for _, query in enumerate(_Queries): | ||
for _, query in enumerate(Queries): | ||
s_storm_format.highlight_storm(s_parser.LarkParser, query) |