diff options
author | Vishal Gupta <vishalgupta7972@gmail.com> | 2018-06-24 12:23:37 +0530 |
---|---|---|
committer | Vishal Gupta <vishalgupta7972@gmail.com> | 2018-06-24 12:23:37 +0530 |
commit | 3ef92ce4411f13c2c3f2e6d1e6d5ed7de647e71e (patch) | |
tree | 8574b4e2dc5fb82cd6ec3d56b5852a88e46e1885 /lib/Automake/Parser/t | |
parent | c538dc193d39be7df03615d4d4792ec4c1aedf97 (diff) | |
download | automake-3ef92ce4411f13c2c3f2e6d1e6d5ed7de647e71e.tar.gz |
Updated multiline statement and conditional statements.
* Added new test cases.
* Added support for += .
* Updated conditional statements to handle multiple statements inside
* if/else block.
* Prints error when comment follow trailing backslash.
Diffstat (limited to 'lib/Automake/Parser/t')
-rw-r--r-- | lib/Automake/Parser/t/commen10.txt | 4 | ||||
-rw-r--r-- | lib/Automake/Parser/t/commen11.txt | 7 | ||||
-rw-r--r-- | lib/Automake/Parser/t/comment-block.txt | 5 | ||||
-rw-r--r-- | lib/Automake/Parser/t/comment.txt | 1 | ||||
-rw-r--r-- | lib/Automake/Parser/t/comment2.txt | 1 | ||||
-rw-r--r-- | lib/Automake/Parser/t/comment4.txt | 4 | ||||
-rw-r--r-- | lib/Automake/Parser/t/comment7.txt | 7 | ||||
-rw-r--r-- | lib/Automake/Parser/t/comment8.txt | 9 | ||||
-rw-r--r-- | lib/Automake/Parser/t/comment9.txt | 8 |
9 files changed, 46 insertions, 0 deletions
diff --git a/lib/Automake/Parser/t/commen10.txt b/lib/Automake/Parser/t/commen10.txt new file mode 100644 index 000000000..ca9100c04 --- /dev/null +++ b/lib/Automake/Parser/t/commen10.txt @@ -0,0 +1,4 @@ +SUBDIRS = foo \ +# bar + +END diff --git a/lib/Automake/Parser/t/commen11.txt b/lib/Automake/Parser/t/commen11.txt new file mode 100644 index 000000000..492146aaf --- /dev/null +++ b/lib/Automake/Parser/t/commen11.txt @@ -0,0 +1,7 @@ +# initial comment +variable = value-before-comment \ +# + +# comment +SUBDIRS = foo \ +# bar diff --git a/lib/Automake/Parser/t/comment-block.txt b/lib/Automake/Parser/t/comment-block.txt new file mode 100644 index 000000000..4333868f6 --- /dev/null +++ b/lib/Automake/Parser/t/comment-block.txt @@ -0,0 +1,5 @@ +#START +#a +#b +#c +#END diff --git a/lib/Automake/Parser/t/comment.txt b/lib/Automake/Parser/t/comment.txt new file mode 100644 index 000000000..46aa24e2b --- /dev/null +++ b/lib/Automake/Parser/t/comment.txt @@ -0,0 +1 @@ +AUTOMAKE_OPTIONS = #no such option diff --git a/lib/Automake/Parser/t/comment2.txt b/lib/Automake/Parser/t/comment2.txt new file mode 100644 index 000000000..3692b1c64 --- /dev/null +++ b/lib/Automake/Parser/t/comment2.txt @@ -0,0 +1 @@ +bin_PROGRAMS = sim_products receive_th receive_pos # image_proc diff --git a/lib/Automake/Parser/t/comment4.txt b/lib/Automake/Parser/t/comment4.txt new file mode 100644 index 000000000..37fac66e9 --- /dev/null +++ b/lib/Automake/Parser/t/comment4.txt @@ -0,0 +1,4 @@ +# UnIqUe_COPYRIGHT_BOILERPLATE + +# UnIqUe_MUMBLE_COMMENT +mumble = UnIqUe_MUMBLE_VALUE diff --git a/lib/Automake/Parser/t/comment7.txt b/lib/Automake/Parser/t/comment7.txt new file mode 100644 index 000000000..5566ad8c9 --- /dev/null +++ b/lib/Automake/Parser/t/comment7.txt @@ -0,0 +1,7 @@ +if COND +# Comment for VAR in COND_TRUE. +VAR = foo +else +# Comment for VAR in COND_FALSE. +VAR = bar +endif diff --git a/lib/Automake/Parser/t/comment8.txt b/lib/Automake/Parser/t/comment8.txt new file mode 100644 index 000000000..c96e45fca --- /dev/null +++ b/lib/Automake/Parser/t/comment8.txt @@ -0,0 +1,9 @@ +VAR = valA # comA ## com C +VAR += valB # comB +if COND1 + VAR += val1 # com1 +endif COND1 +VAR += valC +if COND2 + VAR += val2 # com2 +endif COND2 diff --git a/lib/Automake/Parser/t/comment9.txt b/lib/Automake/Parser/t/comment9.txt new file mode 100644 index 000000000..8d58c00c2 --- /dev/null +++ b/lib/Automake/Parser/t/comment9.txt @@ -0,0 +1,8 @@ +TESTS = \ + 1.test \ + 2.test \ + 3.test \ +## 4.test \ + 5.test \ + 6.test \ + 7.test |