tree-sitter-cmake/corpus/unquoted_argument.txt
2021-06-08 00:02:13 +02:00

107 lines
1.9 KiB
Plaintext

========================================================
Command invocation with one argument [unquoted_argument]
========================================================
message(STATUS)
---
(source_file
(normal_command
(identifier)
(arguments
(argument (unquoted_argument))
)
)
)
=========================================================
Command invocation with two arguments [unquoted_argument]
=========================================================
message(STATUS Hello)
---
(source_file
(normal_command
(identifier)
(arguments
(argument (unquoted_argument))
(seperation (space))
(argument (unquoted_argument))
)
)
)
===============================================================
Command invocations with leading seperation [unquoted_argument]
===============================================================
message( STATUS)
message(
STATUS)
---
(source_file
(normal_command
(identifier)
(seperation (space))
(arguments
(argument (unquoted_argument))
)
)
(normal_command
(identifier)
(seperation (line_ending (newline)))
(arguments
(argument (unquoted_argument))
)
)
)
============================================================
Command invocations with escape sequence [unquoted_argument]
============================================================
message( STATUS)
message(
STATUS)
---
(source_file
(normal_command
(identifier)
(seperation (space))
(arguments
(argument (unquoted_argument))
)
)
(normal_command
(identifier)
(seperation (line_ending (newline)))
(arguments
(argument (unquoted_argument))
)
)
)
========================================
Variable referencing [unquoted_argument]
========================================
message(${var_ref})
---
(source_file
(normal_command
(identifier)
(arguments
(argument
(unquoted_argument
(variable_ref (normal_var (variable)))
)
)
)
)
)