diff options
Diffstat (limited to 'vendored_parsers/tree-sitter-cmake/test/corpus/comment.txt')
-rw-r--r-- | vendored_parsers/tree-sitter-cmake/test/corpus/comment.txt | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/vendored_parsers/tree-sitter-cmake/test/corpus/comment.txt b/vendored_parsers/tree-sitter-cmake/test/corpus/comment.txt new file mode 100644 index 000000000..1c09552e6 --- /dev/null +++ b/vendored_parsers/tree-sitter-cmake/test/corpus/comment.txt @@ -0,0 +1,62 @@ +========================= +Bracket comment [comment] +========================= +#[[Some comment]] + +--- + +(source_file + (bracket_comment) +) + +========================================================== +Command invocation with embedded bracket comment [comment] +========================================================== +message(STATUS #[[Some comment]] "comment is next" #[[Some comment]]) + +--- + +(source_file + (normal_command + (identifier) + (argument_list + (argument (unquoted_argument)) + (bracket_comment) + (argument (quoted_argument (quoted_element))) + (bracket_comment) + ) + ) +) + +====================== +Line comment [comment] +====================== +# [[Some comment]] "comment is next" #[[Some comment]] + +--- + +(source_file + (line_comment) +) + +=================================== +Message with Line comment [comment] +=================================== +message(STATUS #Some line comment + +Second #Some other line comment +) + +--- + +(source_file + (normal_command + (identifier) + (argument_list + (argument (unquoted_argument)) + (line_comment) + (argument (unquoted_argument)) + (line_comment) + ) + ) +) |