Skip to content

Commit b1d28b1

Browse files
committed
replaced comment matcher with # comments for coffeescript
1 parent a4f82e6 commit b1d28b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/scanners/coffee_script.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def scan_tokens encoder, options
7272
value_expected = true if !value_expected && match.index(?\n)
7373
encoder.text_token match, :space
7474

75-
elsif match = scan(%r! // [^\n\\]* (?: \\. [^\n\\]* )* | /\* (?: .*? \*/ | .* ) !mx)
75+
elsif match = scan(%r! \# [^\n\\]* (?: \#. [^\n\\]* )* !mx)
7676
value_expected = true
7777
encoder.text_token match, :comment
7878

0 commit comments

Comments
 (0)