tree-sitter-elixir/test/corpus/term/charlist.txt

215 lines
3.1 KiB
Plaintext
Raw Normal View History

2021-09-01 14:59:04 +00:00
=====================================
single line
=====================================
'Hello, 123!'
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
multiple lines
=====================================
'line 1
line 2'
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
interpolation
=====================================
'hey #{name}!'
'hey #{
name
}!'
'##{name}#'
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
(identifier))
2021-09-28 14:00:35 +00:00
(quoted_content))
2021-09-01 14:59:04 +00:00
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
(identifier))
2021-09-28 14:00:35 +00:00
(quoted_content))
2021-09-01 14:59:04 +00:00
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
(identifier))
2021-09-28 14:00:35 +00:00
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
nested interpolation
=====================================
'this is #{'number #{1}'}!'
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
2021-09-25 00:23:37 +00:00
(integer))))
2021-09-28 14:00:35 +00:00
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
escape sequence
=====================================
'_\'_\n_\t_\r_\e_\\_\1_\x3f_\u0065\u0301_'
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
escaped interpolation
=====================================
'\#{1}'
---
(source
(charlist
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
heredoc / charlist
=====================================
'''
text
with 'quotes'
'''
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
heredoc / interpolation
=====================================
'''
hey #{name}!
'''
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
(identifier))
2021-09-28 14:00:35 +00:00
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
heredoc / nested interpolation
=====================================
'''
this is #{
'''
number #{1}
'''
}!
'''
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
2021-09-25 00:23:37 +00:00
(integer))
2021-09-28 14:00:35 +00:00
(quoted_content)))
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
heredoc / escaped delimiter
=====================================
'''
\'''
'''
'''
\'\'\'
'''
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-25 00:23:37 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content))
2021-09-01 14:59:04 +00:00
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-25 00:23:37 +00:00
(escape_sequence)
(escape_sequence)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)))
2021-09-01 14:59:04 +00:00
=====================================
heredoc / escaped interpolation
=====================================
'''
\#{1}
'''
---
(source
(charlist
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)
2021-09-28 14:00:35 +00:00
(quoted_content)))