tree-sitter-cmake/corpus/unquoted_argument.txt

120 lines
2.3 KiB
Plaintext
Raw Normal View History

2021-06-07 17:29:32 -04:00
========================================================
Command invocation with one argument [unquoted_argument]
========================================================
2021-04-10 13:21:36 -04:00
message(STATUS)
---
(source_file
(normal_command
(identifier)
(argument (unquoted_argument))
)
)
2021-04-10 13:21:36 -04:00
2021-06-07 17:29:32 -04:00
=========================================================
Command invocation with two arguments [unquoted_argument]
=========================================================
2021-04-10 13:21:36 -04:00
message(STATUS Hello)
---
(source_file
(normal_command
(identifier)
2021-06-16 15:37:14 -04:00
(argument (unquoted_argument))
(argument (unquoted_argument))
)
)
2021-06-07 17:29:32 -04:00
===============================================================
Command invocations with leading seperation [unquoted_argument]
===============================================================
message( STATUS)
message(
STATUS)
---
(source_file
(normal_command
(identifier)
(argument (unquoted_argument))
)
(normal_command
(identifier)
(argument (unquoted_argument))
)
)
2021-06-07 17:29:32 -04:00
============================================================
Command invocations with escape sequence [unquoted_argument]
============================================================
2021-04-11 09:47:39 -04:00
2021-06-07 18:02:13 -04:00
message( STATUS)
2021-04-11 09:47:39 -04:00
message(
STATUS)
---
(source_file
(normal_command
(identifier)
(argument (unquoted_argument))
)
(normal_command
(identifier)
(argument (unquoted_argument))
)
)
2021-06-07 17:29:32 -04:00
========================================
Variable referencing [unquoted_argument]
========================================
message(${var_ref})
---
(source_file
(normal_command
(identifier)
2021-06-16 15:37:14 -04:00
(argument
(unquoted_argument
(variable_ref (normal_var (variable)))
)
)
)
)
2021-06-30 01:40:33 -04:00
====================================================================
Variable referencing inside variable referencing [unquoted_argument]
====================================================================
message(${var_${var_ref}})
---
(source_file
(normal_command
(identifier)
(argument
(unquoted_argument
(variable_ref (normal_var (variable (variable_ref (normal_var (variable))))))
)
)
)
)
===============================================================
Lookalike variable inside unquoted argument [unquoted_argument]
===============================================================
message($var)
---
(source_file
(normal_command
(identifier)
(argument
(unquoted_argument)
)
)
)