From: H.G. Muller Date: Tue, 27 Oct 2009 17:33:42 +0000 (-0700) Subject: quick fix for "White Mates" in parser.l X-Git-Tag: v4.4.1~12 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6b27ab1561b346a499c33932a3fc099ab49f2524;p=xboard.git quick fix for "White Mates" in parser.l --- diff --git a/parser.l b/parser.l index 7e77c88..d96b95a 100755 --- a/parser.l +++ b/parser.l @@ -849,11 +849,11 @@ extern void CopyBoard P((Board to, Board from)); return (int) GameIsDrawn; } -(([Ww](hite)?)|([Bb](lack)?))" "([Mm]ate(s|ed)?)|([Ww][io]n(s)?.*) { +(([Ww](hite)?)|([Bb](lack)?))" "(([Mm]ates)|([Ww][io]n(s)?)) { return (int) (ToUpper(yytext[0]) == 'W' ? WhiteWins : BlackWins); } -(([Ww](hite)?)|([Bb](lack)?))" "([Mm]ate(s|ed)?)|([Ll]os[tes]+.*) { +(([Ww](hite)?)|([Bb](lack)?))" "(([Mm]ated)|([Ll]os[tes]+)) { return (int) (ToUpper(yytext[0]) == 'W' ? BlackWins : WhiteWins); }