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

85 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-09-01 14:59:04 +00:00
=====================================
simple literal
=====================================
:atom
:_az_AZ_19_
:nonode@nohost
:bang!
:question?
---
(source
2021-09-28 14:00:35 +00:00
(atom)
(atom)
(atom)
(atom)
(atom))
2021-09-01 14:59:04 +00:00
=====================================
operators
=====================================
2021-09-25 00:23:37 +00:00
[:~~~, :~>>, :~>, :|||, :||, :|>, :|, :>>>, :>=, :>, :=~, :===, :==, :=, :<~>, :<~, :<|>, :<>, :<=, :<<~, :<<<, :<-, :<, :+++, :++, :+, :^^^, :^, :&&&, :&&, :&, :\\, :/, :**, :*, :@, :.., :., :!==, :!=, :!, :::, :->, :---, :--, :-]
2021-09-01 14:59:04 +00:00
---
(source
2021-09-28 14:00:35 +00:00
(list (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom) (atom)))
2021-09-01 14:59:04 +00:00
=====================================
special operator-like atoms
=====================================
[:..., :%{}, :{}, :%, :<<>>, :..//]
---
(source
(list
2021-09-28 14:00:35 +00:00
(atom)
(atom)
(atom)
(atom)
(atom)
(atom)))
2021-09-01 14:59:04 +00:00
=====================================
quoted atom
=====================================
:"atom ?? !! ' \n"
:'atom ?? !! " \n'
---
(source
2021-09-28 14:00:35 +00:00
(quoted_atom
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence))
2021-09-28 14:00:35 +00:00
(quoted_atom
(quoted_content)
2021-09-01 14:59:04 +00:00
(escape_sequence)))
=====================================
interpolation
=====================================
:"hey #{name}!"
:'hey #{name}!'
---
(source
2021-09-28 14:00:35 +00:00
(quoted_atom
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
(identifier))
2021-09-28 14:00:35 +00:00
(quoted_content))
(quoted_atom
(quoted_content)
2021-09-01 14:59:04 +00:00
(interpolation
(identifier))
2021-09-28 14:00:35 +00:00
(quoted_content)))