lib/grammar.tt in parse_a_changelog-1.2.0 vs lib/grammar.tt in parse_a_changelog-1.3.0
- old
+ new
@@ -51,20 +51,24 @@
rule release_header
'## ' '['? release_version ']'? ' - ' release_date new_line
end
rule release_version
- [0-9]+ '.' [0-9]+ '.' [0-9]+ pre_release_version metadata
+ [0-9]+ '.' [0-9]+ '.' [0-9]+ fourth_version_digit pre_release_version metadata
end
rule pre_release_version
( '-' [0-9A-Za-z-]+ dot_separated_group* ) / ''
end
rule metadata
( '+' [0-9A-Za-z-]+ dot_separated_group* ) / ''
end
+ rule fourth_version_digit
+ ( '.' [0-9]+) / ''
+ end
+
rule dot_separated_group
'.' [0-9A-Za-z-]+
end
rule release_date