File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class Go < Scanner
44
44
add ( PREDEFINED_FUNCTIONS , :predefined ) # :nodoc:
45
45
46
46
ESCAPE = / [rbfntv\n \\ '"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc:
47
- UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc:
47
+ UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc:
48
48
49
49
protected
50
50
@@ -123,7 +123,7 @@ def scan_tokens encoder, options
123
123
label_expected_before_preproc_line = label_expected
124
124
state = :include_expected if self [ 1 ] == 'include'
125
125
126
- elsif match = scan ( / L?' (?: [^\' \n \\ ] | \\ #{ ESCAPE } )? '? /ox )
126
+ elsif match = scan ( / L?' (?: [^\' \n \\ ] | \\ (?: #{ ESCAPE } | #{ UNICODE_ESCAPE } ) )? '? /ox )
127
127
label_expected = false
128
128
encoder . text_token match , :char
129
129
You can’t perform that action at this time.
0 commit comments