From 0d37800d2790ea999cf5f8867bf9cba3ddd0e9ed Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 22 Sep 2013 18:34:11 +0200 Subject: [PATCH] Issue3571: Stop \lyricmode { \skip 1.*3 } from failing. The problem was that the lexer preferred to match ".*" as a word since the matched pattern was longer than the explicit pattern matching ".". The word pattern is now amended so that it does not compete with the single-character patterns. --- lily/lexer.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lily/lexer.ll b/lily/lexer.ll index cebbd19627..e896de3d63 100644 --- a/lily/lexer.ll +++ b/lily/lexer.ll @@ -585,7 +585,7 @@ BOM_UTF8 \357\273\277 yylval = SCM_UNSPECIFIED; return YYText ()[0]; } - [^$#{}\"\\ \t\n\r\f0-9]+ { + [^|*.=$#{}\"\\ \t\n\r\f0-9][^$#{}\"\\ \t\n\r\f0-9]* { /* ugr. This sux. */ string s (YYText_utf8 ()); yylval = SCM_UNSPECIFIED; -- 2.39.2