tree-sitter-bp/test/corpus/comments.txt

141 lines
3.7 KiB
Plaintext
Raw Permalink Normal View History

2024-04-07 23:20:57 +02:00
================================================================================
Empty comment
================================================================================
//
2024-04-07 23:20:57 +02:00
--------------------------------------------------------------------------------
(source_file
(comment))
2024-04-07 23:20:57 +02:00
================================================================================
Single comment
================================================================================
// This is a comment
2024-04-07 23:20:57 +02:00
--------------------------------------------------------------------------------
(source_file
(comment))
2024-04-07 23:20:57 +02:00
================================================================================
Multiple comments
================================================================================
// This is a comment
// This is a second comment
2024-04-07 23:20:57 +02:00
--------------------------------------------------------------------------------
(source_file
(comment)
(comment))
2024-04-08 09:48:10 +02:00
================================================================================
Empty block comment
================================================================================
/**/
--------------------------------------------------------------------------------
(source_file
(comment))
2024-04-08 09:48:10 +02:00
================================================================================
Whitespace block comment
================================================================================
/* */
--------------------------------------------------------------------------------
(source_file
(comment))
2024-04-08 09:48:10 +02:00
================================================================================
Block comment
================================================================================
/* This is a comment */
--------------------------------------------------------------------------------
(source_file
(comment))
2024-04-08 09:48:10 +02:00
================================================================================
Block comment with slashes
================================================================================
/* /// */
--------------------------------------------------------------------------------
(source_file
(comment))
2024-04-08 09:48:10 +02:00
================================================================================
Block comment with asterisks
================================================================================
/* *** */
--------------------------------------------------------------------------------
(source_file
(comment))
================================================================================
Block comment (multiline)
================================================================================
/*
This
is
a
long
comment
*/
--------------------------------------------------------------------------------
2024-04-08 09:48:10 +02:00
(source_file
(comment))
2024-04-08 09:48:10 +02:00
================================================================================
Block comment is not recursive
================================================================================
/* /* */
--------------------------------------------------------------------------------
(source_file
(comment))
2024-04-08 09:48:10 +02:00
================================================================================
Unterminated comment
================================================================================
/*
--------------------------------------------------------------------------------
(source_file
(ERROR))
================================================================================
Comment end-delimiter only
================================================================================
*/
--------------------------------------------------------------------------------
(source_file
(ERROR
(UNEXPECTED '*')))