tree-sitter-cmake/corpus/bracket_argument.txt

120 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-04-10 15:55:47 -04:00
======================
Empty bracket argument
======================
message([[]])
---
(source_file
(command_invocation
(normal_command
(identifier)
(arguments
(argument (bracket_argument))
)
2021-04-10 15:55:47 -04:00
)
)
)
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
(normal_command
(identifier)
(arguments
(argument (bracket_argument (bracket_content)))
)
2021-04-10 17:40:25 -04:00
)
)
)
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
(normal_command
(identifier)
(arguments
(argument (bracket_argument (bracket_content)))
)
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
(normal_command
(identifier)
(arguments
(argument (bracket_argument (bracket_content)))
(seperation (space))
(argument (bracket_argument (bracket_content)))
)
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
(normal_command
(identifier)
(seperation (space))
(arguments
(argument (bracket_argument (bracket_content)))
2021-04-10 19:08:13 -04:00
(seperation (space))
(argument (bracket_argument (bracket_content)))
(seperation (line_ending (newline)))
)
2021-04-10 19:08:13 -04:00
)
)
)
2021-04-11 11:45:20 -04:00
================================
Bracket argument with line break
================================
message([[An argument
with line break
]])
---
(source_file
(command_invocation
(normal_command
(identifier)
(arguments
(argument (bracket_argument (bracket_content)))
)
2021-04-11 11:45:20 -04:00
)
)
)
2021-04-11 11:45:20 -04:00