summaryrefslogtreecommitdiffstats
path: root/vendored_parsers/tree-sitter-cmake/test/corpus/parentheses.txt
diff options
context:
space:
mode:
Diffstat (limited to 'vendored_parsers/tree-sitter-cmake/test/corpus/parentheses.txt')
-rw-r--r--vendored_parsers/tree-sitter-cmake/test/corpus/parentheses.txt62
1 files changed, 62 insertions, 0 deletions
diff --git a/vendored_parsers/tree-sitter-cmake/test/corpus/parentheses.txt b/vendored_parsers/tree-sitter-cmake/test/corpus/parentheses.txt
new file mode 100644
index 000000000..542c5bdcf
--- /dev/null
+++ b/vendored_parsers/tree-sitter-cmake/test/corpus/parentheses.txt
@@ -0,0 +1,62 @@
+===================================================
+Parentheses inside command invocation [parentheses]
+===================================================
+message(STATUS (TEST))
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (unquoted_argument))
+ (argument (unquoted_argument))
+ )
+ )
+)
+
+===========================================================
+Missing parentheses inside command invocation [parentheses]
+===========================================================
+message(STATUS (TEST)
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (unquoted_argument))
+ (argument (unquoted_argument))
+ )
+ (MISSING ")")
+ )
+)
+
+==================================================================
+Nested missing parentheses inside command invocation [parentheses]
+==================================================================
+message(STATUS ((TEST))
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (unquoted_argument))
+ (argument (unquoted_argument))
+ )
+ (MISSING ")")
+ )
+)
+
+===============================================
+Many arguments inside parentheses [parentheses]
+===============================================
+message(STATUS (TEST SECOND_TEST))
+---
+(source_file
+ (normal_command
+ (identifier)
+ (argument_list
+ (argument (unquoted_argument))
+ (argument (unquoted_argument))
+ (argument (unquoted_argument))
+ )
+ )
+)