summaryrefslogtreecommitdiffstats
path: root/vendored_parsers/tree-sitter-cmake/test/corpus/bracket_argument.txt
diff options
context:
space:
mode:
Diffstat (limited to 'vendored_parsers/tree-sitter-cmake/test/corpus/bracket_argument.txt')
-rw-r--r--vendored_parsers/tree-sitter-cmake/test/corpus/bracket_argument.txt105
1 files changed, 105 insertions, 0 deletions
diff --git a/vendored_parsers/tree-sitter-cmake/test/corpus/bracket_argument.txt b/vendored_parsers/tree-sitter-cmake/test/corpus/bracket_argument.txt
new file mode 100644
index 000000000..aa93391cc
--- /dev/null
+++ b/vendored_parsers/tree-sitter-cmake/test/corpus/bracket_argument.txt
@@ -0,0 +1,105 @@
+=========================================
+Empty bracket argument [bracket_argument]
+=========================================
+
+message([[]])
+
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (bracket_argument))
+ )
+ )
+ )
+
+=======================================
+One bracket argument [bracket_argument]
+=======================================
+
+message([[an argument]])
+
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (bracket_argument))
+ )
+ )
+ )
+
+========================================
+Two bracket arguments [bracket_argument]
+========================================
+
+message([[first argument]] [[second argument]])
+
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (bracket_argument))
+ (argument (bracket_argument))
+ )
+ )
+ )
+
+========================================================
+Two bracket with two equals arguments [bracket_argument]
+========================================================
+
+message(
+ [====[first argument]====]
+ [====[second argument]====]
+)
+
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (bracket_argument))
+ (argument (bracket_argument))
+ )
+ )
+ )
+
+===================================================
+Bracket argument with line break [bracket_argument]
+===================================================
+
+message([[an argument
+with line break
+]])
+
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (bracket_argument))
+ )
+ )
+ )
+
+=====================================================================================
+Bracket argument with embedded brackets and equal signs line break [bracket_argument]
+=====================================================================================
+
+message([===[an argument
+with line break ]==]
+]===])
+
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (bracket_argument))
+ )
+ )
+ )
+