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

98 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-09-01 14:59:04 +00:00
=====================================
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
2021-09-28 14:00:35 +00:00
(quoted_content))
2021-09-01 14:59:04 +00:00
(string
2021-09-28 14:00:35 +00:00
(quoted_content)
2021-09-25 00:23:37 +00:00
(interpolation (identifier))))