tree-sitter-cmake/corpus/unquoted_argument.txt
Uy Ha 672fb317c4 Expose inner elements of variables and argument:
- Purpose: Better support nvim-treesitter highlighting
2021-05-28 22:12:15 +02:00

107 lines
1.7 KiB
Plaintext

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