irongit

A rust macro that allows regular expression creation through independent files. Allows fully typed named groups.

Corrected comments

huncholanehuncholaneauthored
parent 4cd9043commit 4b7e8138dd2ae1d8f4e7f3259fd07debaeff1a34Browse files

1 file changed, +3 -2

+3-2tests/regex/Event.re
@@ -1,11 +1,12 @@
1-# This will create a struct called Event with the fields start, end, ampm, and activity
1+# This will create a struct called EventRE with the fields start, end, ampm, and activity
22
33 # Get the start
4-(?<start>\d{1,2}:\d{1,2})
4+^(?<start>\d{1,2}:\d{1,2})
55 .
66 # Get the end time
77 (?<end>\d{1,2}:\d{1,2})
88 \s{0,2}
9+
910 # Get the AM or PM after the times
1011 (?<ampm>[AMPM]{2})
1112 .