Add block comments
This commit is contained in:
parent
6d3dd1c8cb
commit
eec21c84da
5 changed files with 2347 additions and 1744 deletions
|
|
@ -32,3 +32,92 @@ Multiple comments
|
|||
(source_file
|
||||
(line_comment)
|
||||
(line_comment))
|
||||
|
||||
================================================================================
|
||||
Empty block comment
|
||||
================================================================================
|
||||
|
||||
/**/
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(block_comment))
|
||||
|
||||
================================================================================
|
||||
Whitespace block comment
|
||||
================================================================================
|
||||
|
||||
/* */
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(block_comment))
|
||||
|
||||
================================================================================
|
||||
Block comment
|
||||
================================================================================
|
||||
|
||||
/* This is a comment */
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(block_comment))
|
||||
|
||||
================================================================================
|
||||
Block comment with slashes
|
||||
================================================================================
|
||||
|
||||
/* /// */
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(block_comment))
|
||||
|
||||
================================================================================
|
||||
Block comment with asterisks
|
||||
================================================================================
|
||||
|
||||
/* *** */
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(block_comment))
|
||||
|
||||
================================================================================
|
||||
Block comment is not recursive
|
||||
================================================================================
|
||||
|
||||
/* /* */
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(block_comment))
|
||||
|
||||
================================================================================
|
||||
Unterminated comment
|
||||
================================================================================
|
||||
|
||||
/*
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(ERROR))
|
||||
|
||||
================================================================================
|
||||
Comment end-delimiter only
|
||||
================================================================================
|
||||
|
||||
*/
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(ERROR
|
||||
(UNEXPECTED '*')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue