Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharon Cichelli committed Dec 27, 2012
1 parent 9be5761 commit 5311115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/TempusReader/DateGrammar.cs
Expand Up @@ -21,7 +21,8 @@ static DateGrammar()
let adjusted = suffix.Kind.Name == "past" ? timeSpan.Negate() : timeSpan
select new Time(adjusted);

Yesterday.Rule = from yesterday in Token(TimeLexer.Yesterday) select new Time(TimeSpan.FromDays(-1));
Yesterday.Rule = from _ in Token(TimeLexer.Yesterday)
select new Time(TimeSpan.FromDays(-1));

Time.Rule = Choice(TimePrefix, TimeSuffix, Yesterday);
}
Expand Down
2 changes: 1 addition & 1 deletion src/TempusReader/TimeLexer.cs
Expand Up @@ -30,6 +30,6 @@ public TimeLexer() : base(Milliseconds, Seconds, Minutes, Hours, Days, InTime, F
public static readonly Pattern FromNowTime = new Pattern("future", FromNowTimePattern);
public static readonly Pattern AgoTime = new Pattern("past", AgoTimePattern);

public static readonly Pattern Yesterday = new Pattern("past", @"yesterday");
public static readonly Keyword Yesterday = new Keyword("yesterday");
}
}

0 comments on commit 5311115

Please sign in to comment.