Skip to content
This repository was archived by the owner on Feb 6, 2018. It is now read-only.

Commit 33f1a73

Browse files
committed
reset string_delimiter when detecting open string
1 parent 4540eb3 commit 33f1a73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/coderay/scanners/java_script.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def scan_tokens encoder, options
184184
elsif match = scan(/ \\ | $ /x)
185185
encoder.end_group state
186186
encoder.text_token match, :error unless match.empty?
187+
string_delimiter = nil
187188
key_expected = value_expected = false
188189
state = :initial
189190
else

0 commit comments

Comments
 (0)