diff --git a/corpus/bracket_argument.txt b/corpus/bracket_argument.txt index 1b54f2c..beb22a2 100644 --- a/corpus/bracket_argument.txt +++ b/corpus/bracket_argument.txt @@ -1,6 +1,6 @@ -====================== -Empty bracket argument -====================== +========================================= +Empty bracket argument [bracket_argument] +========================================= message([[]]) @@ -16,9 +16,9 @@ message([[]]) ) ) -========================== -One empty bracket argument -========================== +======================================= +One bracket argument [bracket_argument] +======================================= message([[An argument]]) @@ -34,27 +34,9 @@ message([[An argument]]) ) ) -==================== -One bracket argument -==================== - -message([[An argument]]) - ---- -(source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (bracket_argument (bracket_content))) - ) - ) - ) - ) - -===================== -Two bracket arguments -===================== +======================================== +Two bracket arguments [bracket_argument] +======================================== message([[First argument]] [[Second argument]]) @@ -72,9 +54,9 @@ message([[First argument]] [[Second argument]]) ) ) -===================================== -Two bracket with two equals arguments -===================================== +======================================================== +Two bracket with two equals arguments [bracket_argument] +======================================================== message( [====[First argument]====] @@ -97,9 +79,9 @@ message( ) ) -================================ -Bracket argument with line break -================================ +=================================================== +Bracket argument with line break [bracket_argument] +=================================================== message([[An argument with line break diff --git a/corpus/foreach.txt b/corpus/foreach.txt index 3e1e958..be2b814 100644 --- a/corpus/foreach.txt +++ b/corpus/foreach.txt @@ -1,6 +1,6 @@ -========================================== -[foreach, lowercase, empty_for, empty_end] -========================================== +============================ +Empty foreach loop [foreach] +============================ foreach(var) endforeach() @@ -21,9 +21,9 @@ endforeach() ) ) -============================================== -[foreach, lowercase, empty_for, non_empty_end] -============================================== +========================================================= +Empty foreach loop with one argument endforeach [foreach] +========================================================= foreach(var) endforeach(var) @@ -45,9 +45,9 @@ endforeach(var) ) ) -========================================== -[foreach, uppercase, empty_for, empty_end] -========================================== +=========================== +Uppercase foreach [foreach] +=========================== FOREACH(var) ENDFOREACH() @@ -68,9 +68,9 @@ ENDFOREACH() ) ) -=========================================== -[foreach, mixed_case, empty_for, empty_end] -=========================================== +============================ +Mixed case foreach [foreach] +============================ forEach(var) endForEach() diff --git a/corpus/no_argument.txt b/corpus/no_argument.txt index 2ceb385..c08b27f 100644 --- a/corpus/no_argument.txt +++ b/corpus/no_argument.txt @@ -1,6 +1,6 @@ -=================================== -Command invocation without argument -=================================== +================================================= +Command invocation without argument [no_argument] +================================================= message() @@ -14,9 +14,9 @@ message() ) ) -=============================================== -Command invocation without argument with spaces -=============================================== +============================================================= +Command invocation without argument with spaces [no_argument] +============================================================= message( ) @@ -31,9 +31,9 @@ message( ) ) ) -================================================ -Command invocation without argument with newline -================================================ +============================================================== +Command invocation without argument with newline [no_argument] +============================================================== message( diff --git a/corpus/quoted_argument.txt b/corpus/quoted_argument.txt index 7f290f8..fcf7675 100644 --- a/corpus/quoted_argument.txt +++ b/corpus/quoted_argument.txt @@ -1,6 +1,6 @@ -========================= -One empty quoted argument -========================= +=========================================== +One empty quoted argument [quoted_argument] +=========================================== message("") @@ -16,9 +16,9 @@ message("") ) ) -=================== -One quoted argument -=================== +===================================== +One quoted argument [quoted_argument] +===================================== message("An argument") @@ -34,9 +34,9 @@ message("An argument") ) ) -==================== -Two quoted arguments -==================== +====================================== +Two quoted arguments [quoted_argument] +====================================== message("First argument" "Second argument") @@ -54,9 +54,9 @@ message("First argument" "Second argument") ) ) -================================= -A quoted argument with line break -================================= +=================================================== +A quoted argument with line break [quoted_argument] +=================================================== message("An argument with line break") @@ -73,9 +73,9 @@ with line break") ) ) -====================== -One variable reference -====================== +======================================== +One variable reference [quoted_argument] +======================================== message("${var}") @@ -97,9 +97,9 @@ message("${var}") ) ) -======================= -Two Variable references -======================= +========================================= +Two Variable references [quoted_argument] +========================================= message("${var} ${var}") diff --git a/corpus/unquoted_argument.txt b/corpus/unquoted_argument.txt index cb6db0d..c110f76 100644 --- a/corpus/unquoted_argument.txt +++ b/corpus/unquoted_argument.txt @@ -1,6 +1,6 @@ -==================================== -Command invocation with one argument -==================================== +======================================================== +Command invocation with one argument [unquoted_argument] +======================================================== message(STATUS) @@ -17,9 +17,9 @@ message(STATUS) ) ) -===================================== -Command invocation with two arguments -===================================== +========================================================= +Command invocation with two arguments [unquoted_argument] +========================================================= message(STATUS Hello) @@ -38,9 +38,9 @@ message(STATUS Hello) ) ) -=========================================== -Command invocations with leading seperation -=========================================== +=============================================================== +Command invocations with leading seperation [unquoted_argument] +=============================================================== message( STATUS) message( @@ -67,9 +67,9 @@ STATUS) ) ) ) -======================================== -Command invocations with escape sequence -======================================== +============================================================ +Command invocations with escape sequence [unquoted_argument] +============================================================ message( STATUS) message( @@ -97,9 +97,9 @@ STATUS) ) ) -==================== -Variable referencing -==================== +======================================== +Variable referencing [unquoted_argument] +======================================== message(${var_ref}) ---