File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -128,11 +128,21 @@ let tokenize location s =
128
128
scan_identifier started_at
129
129
(open_parenthesis_count - 1 )
130
130
(index - 1 ) tokens
131
+ | '"' when open_parenthesis_count = 0 -> (
132
+ try
133
+ scan_identifier started_at 0
134
+ (String. rindex_from s (index - 1 ) '"' - 1 )
135
+ tokens
136
+ with _ ->
137
+ Error. raise_exception (Error. make " Unmatched quotation!" location) )
131
138
| _ -> scan_identifier started_at open_parenthesis_count (index - 1 ) tokens
132
139
and identifier_ended started_at index =
133
140
let offset = index + 1 in
134
141
let length = started_at - offset in
135
142
let identifier = String. trim (String. sub s offset length) in
143
+ let identifier =
144
+ Astring.String. cuts ~sep: " \" " identifier |> String. concat " "
145
+ in
136
146
let location = Location_. in_string s ~offset ~length location in
137
147
138
148
if identifier = " " then
You can’t perform that action at this time.
0 commit comments