blob: 7c195792ea6a3cbdc33d8f83eff667396aa73760 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
diff --git a/cue_parser.y b/cue_parser.y
index bb3e181..3616908 100644
--- a/cue_parser.y
+++ b/cue_parser.y
@@ -130,7 +130,7 @@ Cd *cue_parse_string(const char*);
%%
cuefile
- : new_cd global_statements track_list
+ : new_cd global_statements track_list end_cd
;
new_cd
@@ -316,6 +316,11 @@ rem_item
| REPLAYGAIN_TRACK_GAIN
| REPLAYGAIN_TRACK_PEAK
;
+
+end_cd
+ : /* empty */
+ | '\n' end_cd
+ ;
%%
/* lexer interface */
diff --git a/t/noncompliant.c b/t/noncompliant.c
index a8d07a1..fb1dcd4 100644
--- a/t/noncompliant.c
+++ b/t/noncompliant.c
@@ -21,7 +21,7 @@ static char cue[] =
"PERFORMER \"The Specials\"\n"
"INDEX 00 02:47:74\n"
"FILE \"The Specials - Singles - 02 - Rudi, A Message To You.flac\" FLAC\n"
- "INDEX 01 00:00:00\n";
+ "INDEX 01 00:00:00\n\n\n\n\n\n";
static char* cue_test()
{
diff --git a/t/single_idx_00.c b/t/single_idx_00.c
index b1b1c57..6eab3d3 100644
--- a/t/single_idx_00.c
+++ b/t/single_idx_00.c
@@ -23,7 +23,7 @@ static char cue[] =
"TITLE \"Helicopter\"\n"
"PERFORMER \"Bloc Party\"\n"
"INDEX 00 07:42:69\n"
- "INDEX 01 07:44:69\n";
+ "INDEX 01 07:44:69";
static char* cue_test()
{
|