tree-sitter-cmake/corpus/bracket_argument.txt
Uy Ha e3dfc2cdca Stop treating command argument as special:
- Planning to move the highlight responsibility to the highlight query
- Stop trying to parse frequently used commands
- One test is failing because of `unquoted_argument`, planning to fix
2021-06-27 21:22:42 +02:00

94 lines
1.8 KiB
Plaintext

=========================================
Empty bracket argument [bracket_argument]
=========================================
message([[]])
---
(source_file
(normal_command
(identifier)
(argument (bracket_argument))
)
)
=======================================
One bracket argument [bracket_argument]
=======================================
message([[an argument]])
---
(source_file
(normal_command
(identifier)
(argument (bracket_argument))
)
)
========================================
Two bracket arguments [bracket_argument]
========================================
message([[first argument]] [[second argument]])
---
(source_file
(normal_command
(identifier)
(argument (bracket_argument))
(argument (bracket_argument))
)
)
========================================================
Two bracket with two equals arguments [bracket_argument]
========================================================
message(
[====[first argument]====]
[====[second argument]====]
)
---
(source_file
(normal_command
(identifier)
(argument (bracket_argument))
(argument (bracket_argument))
)
)
===================================================
Bracket argument with line break [bracket_argument]
===================================================
message([[an argument
with line break
]])
---
(source_file
(normal_command
(identifier)
(argument (bracket_argument))
)
)
=====================================================================================
Bracket argument with embedded brackets and equal signs line break [bracket_argument]
=====================================================================================
message([===[an argument
with line break ]==]
]===])
---
(source_file
(normal_command
(identifier)
(argument (bracket_argument))
)
)