tree-sitter-cmake/corpus/bracket_argument.txt

89 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-04-10 15:55:47 -04:00
======================
Empty bracket argument
======================
message([[]])
---
(source_file
(command_invocation
(identifier)
(arguments
2021-04-10 19:10:37 -04:00
(argument (bracket_argument))
2021-04-10 15:55:47 -04:00
)
)
)
2021-04-10 17:40:25 -04:00
==========================
One empty bracket argument
==========================
message([[An argument]])
---
(source_file
(command_invocation
(identifier)
(arguments
2021-04-10 19:10:37 -04:00
(argument (bracket_argument))
2021-04-10 17:40:25 -04:00
)
)
)
====================
2021-04-10 15:55:47 -04:00
One bracket argument
2021-04-10 17:40:25 -04:00
====================
2021-04-10 15:55:47 -04:00
message([[An argument]])
---
(source_file
(command_invocation
(identifier)
(arguments
2021-04-10 19:10:37 -04:00
(argument (bracket_argument))
2021-04-10 15:55:47 -04:00
)
)
)
2021-04-10 17:40:25 -04:00
=====================
Two bracket arguments
=====================
message([[First argument]] [[Second argument]])
---
(source_file
(command_invocation
(identifier)
(arguments
2021-04-10 19:10:37 -04:00
(argument (bracket_argument))
2021-04-10 17:40:25 -04:00
(seperation (space))
2021-04-10 19:10:37 -04:00
(argument (bracket_argument))
2021-04-10 17:40:25 -04:00
)
)
)
2021-04-10 19:08:13 -04:00
=====================================
Two bracket with two equals arguments
=====================================
message(
[====[First argument]====]
[====[Second argument]====]
)
---
(source_file
(command_invocation
(identifier)
(seperation (space))
(arguments
2021-04-10 19:10:37 -04:00
(argument (bracket_argument))
2021-04-10 19:08:13 -04:00
(seperation (space))
2021-04-10 19:10:37 -04:00
(argument (bracket_argument))
2021-04-10 19:08:13 -04:00
(seperation (line_ending (newline)))
)
)
)