| 1 |
---input--- |
| 2 |
%Q(hello \n #{name}) |
| 3 |
%q(hello \n #{name}) |
| 4 |
%w(foo\nbar baz) |
| 5 |
|
| 6 |
---tokens--- |
| 7 |
'%Q(' Literal.String.Other |
| 8 |
'hello ' Literal.String.Other |
| 9 |
'\\n' Literal.String.Escape |
| 10 |
' ' Literal.String.Other |
| 11 |
'#{' Literal.String.Interpol |
| 12 |
'name' Name |
| 13 |
'}' Literal.String.Interpol |
| 14 |
')' Literal.String.Other |
| 15 |
'\n' Text.Whitespace |
| 16 |
|
| 17 |
'%q(' Literal.String.Other |
| 18 |
'hello ' Literal.String.Other |
| 19 |
'\\' Literal.String.Other |
| 20 |
'n ' Literal.String.Other |
| 21 |
'#' Literal.String.Other |
| 22 |
'{name}' Literal.String.Other |
| 23 |
')' Literal.String.Other |
| 24 |
'\n' Text.Whitespace |
| 25 |
|
| 26 |
'%w(' Literal.String.Other |
| 27 |
'foo' Literal.String.Other |
| 28 |
'\\' Literal.String.Other |
| 29 |
'nbar baz' Literal.String.Other |
| 30 |
')' Literal.String.Other |
| 31 |
'\n' Text.Whitespace |