Skip to content

Commit baeccc2

Browse files
committed
fix: comment
1 parent b8188fc commit baeccc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/coderay/scanners/bash.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ def scan_tokens tokens, options
7171
if @state == :initial
7272
if match = scan(/\A#!.*/)
7373
kind = :directive
74-
elsif match = scan(/#.*/)
74+
elsif match = scan(/\s*#.*/)
7575
kind = :comment
76+
elsif match = scan(/.#/)
77+
kind = :ident
7678
elsif match = scan(/(?:\. |source ).*/)
7779
kind = :reserved
7880
elsif match = scan(/(?:\\.|,)/)

0 commit comments

Comments
 (0)