aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-04-05 18:11:06 +0000
committers-ol <s+removethis@s-ol.nu>2025-04-07 10:33:17 +0000
commit1ca6f7e9caa998b43eb236da2a7618c79c4e76e8 (patch)
tree582e528d12c1bdb18b7769558385b5dd6e474a4a /spec
parentlib: add link-time/spring (diff)
downloadalive-1ca6f7e9caa998b43eb236da2a7618c79c4e76e8.tar.gz
alive-1ca6f7e9caa998b43eb236da2a7618c79c4e76e8.zip
line comments
Diffstat (limited to 'spec')
-rw-r--r--spec/internal/parsing_spec.moon4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/internal/parsing_spec.moon b/spec/internal/parsing_spec.moon
index da70824..47de338 100644
--- a/spec/internal/parsing_spec.moon
+++ b/spec/internal/parsing_spec.moon
@@ -149,6 +149,10 @@ describe 'comments', ->
str = '#(this is a comment)'
assert.is.equal str, comment\match str
+ it 'line comments are parsed', ->
+ str = '## this is a comment )))!'
+ assert.is.equal str, comment\match str
+
it 'extend to matching braces', ->
str = '#(this is a comment #(with nested comments))'
assert.is.equal str, comment\match str