This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
gitmirror
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
39
Wiki
Activity
Browse Source
Extend comments in rules tests
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.8.0
Erez Sh
4 years ago
parent
ce996f445b
commit
94dd3646d4
1 changed files
with
5 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-2
tests/test_parser.py
+ 5
- 2
tests/test_parser.py
View File
@@ -106,9 +106,12 @@ class TestParsers(unittest.TestCase):
def test_comment_in_rule_definition(self):
g = Lark("""start: a
a: "a"
// A comment
// Another
// A comment
// Another
comment
| "b"
// Still more
c: "unrelated"
""")
r = g.parse('b')
self.assertEqual( r.children[0].data, "a" )
Write
Preview
Loading…
Cancel
Save