From 292f445a0a9fd7c145bca7bac8c75f5519568c11 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Wed, 12 Jul 2017 15:52:55 -0500 Subject: [PATCH 1/2] Update rply to 0.7.5 Closes #1313. Ref. alex/rply#52, alex/rply#71. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ad91352..a9ac82e 100755 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ class Install(install): "." + filename[:-len(".hy")]) install.run(self) -install_requires = ['rply>=0.7.0', 'astor>=0.5', 'clint>=0.4'] +install_requires = ['rply>=0.7.5', 'astor>=0.5', 'clint>=0.4'] if os.name == 'nt': install_requires.append('pyreadline>=2.1') From 33052f41809968f30b076aa93884ee58df354e4d Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Wed, 12 Jul 2017 14:07:42 -0700 Subject: [PATCH 2/2] Test compiling a lot of comment lines --- tests/compilers/test_ast.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/compilers/test_ast.py b/tests/compilers/test_ast.py index 1bacdf0..cd982d1 100644 --- a/tests/compilers/test_ast.py +++ b/tests/compilers/test_ast.py @@ -588,3 +588,8 @@ def test_setv_builtins(): (defn get [self] 42)) (defn if* [self] 0)) """) + + +def test_lots_of_comment_lines(): + # https://github.com/hylang/hy/issues/1313 + can_compile(1000 * ";\n")