tree-sitter-cmake/corpus/bracket_argument.txt

102 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-06-07 17:29:32 -04:00
=========================================
Empty bracket argument [bracket_argument]
=========================================
2021-04-10 15:55:47 -04:00
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-06-07 17:29:32 -04:00
=======================================
One bracket argument [bracket_argument]
=======================================
2021-04-10 17:40:25 -04:00
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-06-07 17:29:32 -04:00
========================================
Two bracket arguments [bracket_argument]
========================================
2021-04-10 17:40:25 -04:00
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
2021-06-07 17:29:32 -04:00
========================================================
Two bracket with two equals arguments [bracket_argument]
========================================================
2021-04-10 19:08:13 -04:00
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
2021-06-07 17:29:32 -04:00
===================================================
Bracket argument with line break [bracket_argument]
===================================================
2021-04-11 11:45:20 -04:00
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