mirror of https://github.com/Wilfred/difftastic/
Merge commit '399605a02bcd5daa309ce63a6459c600dce3473f'
commit
b914149ccf
@ -0,0 +1,140 @@
|
||||
======================================================
|
||||
Function definition with no arguments [block_commands]
|
||||
======================================================
|
||||
|
||||
function(fn)
|
||||
endfunction()
|
||||
|
||||
---
|
||||
(source_file
|
||||
(function_def
|
||||
(function_command
|
||||
(function)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
)
|
||||
(endfunction_command
|
||||
(endfunction)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
========================================================
|
||||
Function definition with many arguments [block_commands]
|
||||
========================================================
|
||||
|
||||
function(fn arg1 arg2 arg3)
|
||||
endfunction()
|
||||
|
||||
---
|
||||
(source_file
|
||||
(function_def
|
||||
(function_command
|
||||
(function)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
)
|
||||
(endfunction_command
|
||||
(endfunction)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
===================================================
|
||||
Macro definition with no arguments [block_commands]
|
||||
===================================================
|
||||
|
||||
macro(fn)
|
||||
endmacro()
|
||||
|
||||
---
|
||||
(source_file
|
||||
(macro_def
|
||||
(macro_command
|
||||
(macro)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
)
|
||||
(endmacro_command
|
||||
(endmacro)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
========================================================
|
||||
macro definition with many arguments [block_commands]
|
||||
========================================================
|
||||
|
||||
macro(fn arg1 arg2 arg3)
|
||||
endmacro()
|
||||
|
||||
---
|
||||
(source_file
|
||||
(macro_def
|
||||
(macro_command
|
||||
(macro)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
)
|
||||
(endmacro_command
|
||||
(endmacro)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
============================
|
||||
Block scope [block_commands]
|
||||
============================
|
||||
|
||||
block(SCOPE_FOR POLICIES VARIABLES PROPAGATE var)
|
||||
endblock()
|
||||
|
||||
---
|
||||
(source_file
|
||||
(block_def
|
||||
(block_command
|
||||
(block)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
(argument
|
||||
(unquoted_argument)
|
||||
)
|
||||
)
|
||||
(endblock_command
|
||||
(endblock)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@ -0,0 +1,18 @@
|
||||
========================================
|
||||
Escape sequence of "\;" [Escape_sequence]
|
||||
=========================================
|
||||
|
||||
set(var "It is \; and \"")
|
||||
|
||||
---
|
||||
|
||||
(source_file
|
||||
(normal_command
|
||||
(identifier)
|
||||
(argument
|
||||
(unquoted_argument))
|
||||
(argument
|
||||
(quoted_argument
|
||||
(quoted_element
|
||||
(escape_sequence)
|
||||
(escape_sequence))))))
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue