tree-sitter-cmake/corpus/foreach.txt
2021-06-07 23:29:32 +02:00

93 lines
1.2 KiB
Plaintext

============================
Empty foreach loop [foreach]
============================
foreach(var)
endforeach()
---
(source_file
(command_invocation
(foreach_command
(foreach)
(variable)
)
)
(command_invocation
(endforeach_command
(endforeach)
)
)
)
=========================================================
Empty foreach loop with one argument endforeach [foreach]
=========================================================
foreach(var)
endforeach(var)
---
(source_file
(command_invocation
(foreach_command
(foreach)
(variable)
)
)
(command_invocation
(endforeach_command
(endforeach)
(variable)
)
)
)
===========================
Uppercase foreach [foreach]
===========================
FOREACH(var)
ENDFOREACH()
---
(source_file
(command_invocation
(foreach_command
(foreach)
(variable)
)
)
(command_invocation
(endforeach_command
(endforeach)
)
)
)
============================
Mixed case foreach [foreach]
============================
forEach(var)
endForEach()
---
(source_file
(command_invocation
(foreach_command
(foreach)
(variable)
)
)
(command_invocation
(endforeach_command
(endforeach)
)
)
)