Skip to content

Commit ae121d5

Browse files
committed
Added test for jashkenas#3638
1 parent 5f8122f commit ae121d5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/comments.coffee

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,3 +399,22 @@ test "#3132: Place block-comments nicely", ->
399399
400400
"""
401401
eq CoffeeScript.compile(input, bare: on), result
402+
403+
test "#3638: Demand a whitespace after # symbol", ->
404+
input = """
405+
###
406+
#No
407+
#whitespace
408+
###"""
409+
410+
result = """
411+
412+
/*
413+
#No
414+
#whitespace
415+
*/
416+
417+
418+
"""
419+
420+
eq CoffeeScript.compile(input, bare: on), result

0 commit comments

Comments
 (0)