tree-sitter-cmake/corpus/foreach.txt

85 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-06-07 17:29:32 -04:00
============================
Empty foreach loop [foreach]
============================
2021-06-06 14:38:18 -04:00
foreach(var)
endforeach()
---
(source_file
2021-06-07 18:07:49 -04:00
(foreach_loop
(foreach_command
(foreach)
(variable)
)
(endforeach_command
(endforeach)
)
2021-06-06 14:38:18 -04:00
)
2021-06-07 17:02:35 -04:00
)
2021-06-06 14:38:18 -04:00
2021-06-07 17:29:32 -04:00
=========================================================
Empty foreach loop with one argument endforeach [foreach]
=========================================================
2021-06-06 14:38:18 -04:00
foreach(var)
endforeach(var)
---
(source_file
2021-06-07 18:07:49 -04:00
(foreach_loop
(foreach_command
(foreach)
(variable)
)
(endforeach_command
(endforeach)
(variable)
)
2021-06-07 17:02:35 -04:00
)
)
2021-06-07 17:29:32 -04:00
===========================
Uppercase foreach [foreach]
===========================
2021-06-07 17:02:35 -04:00
FOREACH(var)
ENDFOREACH()
---
(source_file
2021-06-07 18:07:49 -04:00
(foreach_loop
(foreach_command
(foreach)
(variable)
)
(endforeach_command
(endforeach)
)
2021-06-07 17:02:35 -04:00
)
)
2021-06-07 17:29:32 -04:00
============================
Mixed case foreach [foreach]
============================
2021-06-07 17:02:35 -04:00
forEach(var)
endForEach()
---
(source_file
2021-06-07 18:07:49 -04:00
(foreach_loop
(foreach_command
(foreach)
(variable)
)
(endforeach_command
(endforeach)
)
2021-06-06 14:38:18 -04:00
)
2021-06-07 17:02:35 -04:00
)