tree-sitter-elixir/test/corpus/comment.txt

98 lines
1.3 KiB
Plaintext

=====================================
empty
=====================================
#
---
(source
(comment))
=====================================
single line
=====================================
# single comment
---
(source
(comment))
=====================================
multiple start symbols
=====================================
### multiple "#"
---
(source
(comment))
=====================================
many consecutive lines
=====================================
# many
# consecutive
1
# lines
---
(source
(comment)
(comment)
(integer)
(comment))
=====================================
in the same line as regular code
=====================================
1 # comment
---
(source
(integer)
(comment))
=====================================
matches inside a nested structure
=====================================
[ 1 ## inside a list
, { 2 # and a tuple, too!
, 3 }
]
---
(source
(list
(integer)
(comment)
(tuple
(integer)
(comment)
(integer))))
=====================================
does not match inside a string
=====================================
"# string"
"this is #{interpolation}"
---
(source
(string
(string_content))
(string
(string_content)
(interpolation (identifier))))