tree-sitter-cmake/corpus/foreach.txt
2021-06-08 00:07:49 +02:00

85 lines
1.1 KiB
Plaintext

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