tree-sitter-cmake/corpus/foreach.txt

93 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-06-06 14:38:18 -04:00
==========================================
[foreach, lowercase, empty_for, empty_end]
==========================================
foreach(var)
endforeach()
---
(source_file
(command_invocation
2021-06-07 17:02:35 -04:00
(foreach_command
(foreach)
2021-06-06 14:38:18 -04:00
(variable)
)
)
2021-06-07 17:02:35 -04:00
(command_invocation
(endforeach_command
(endforeach)
)
)
2021-06-06 14:38:18 -04:00
)
==============================================
[foreach, lowercase, empty_for, non_empty_end]
==============================================
foreach(var)
endforeach(var)
---
(source_file
(command_invocation
2021-06-07 17:02:35 -04:00
(foreach_command
(foreach)
(variable)
)
)
(command_invocation
(endforeach_command
(endforeach)
(variable)
)
)
)
==========================================
[foreach, uppercase, empty_for, empty_end]
==========================================
FOREACH(var)
ENDFOREACH()
---
(source_file
(command_invocation
(foreach_command
(foreach)
2021-06-06 14:38:18 -04:00
(variable)
2021-06-07 17:02:35 -04:00
)
)
(command_invocation
(endforeach_command
(endforeach)
)
)
)
===========================================
[foreach, mixed_case, empty_for, empty_end]
===========================================
forEach(var)
endForEach()
---
(source_file
(command_invocation
(foreach_command
(foreach)
2021-06-06 14:38:18 -04:00
(variable)
)
)
2021-06-07 17:02:35 -04:00
(command_invocation
(endforeach_command
(endforeach)
)
)
2021-06-06 14:38:18 -04:00
)