]> git.donarmstrong.com Git - lilypond.git/commitdiff
lexer.ll: duplicate a few quotes in character sets to help syntax highlighting
authorDavid Kastrup <dak@gnu.org>
Fri, 26 Oct 2012 12:33:13 +0000 (14:33 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 30 Oct 2012 16:50:54 +0000 (17:50 +0100)
This uses regular expressions like [^''] rather than [^'] in order to keep
the confusion of editors like Emacs tolerable.

lily/lexer.ll

index bad1cd795461e9fe273554220d37960408940bf7..9e4941674a8339614866d2f4e214b2cf1a5f2f3a 100644 (file)
@@ -159,7 +159,7 @@ WHITE               [ \n\t\f\r]
 HORIZONTALWHITE                [ \t]
 BLACK          [^ \n\t\f\r]
 RESTNAME       [rs]
-ESCAPED                [nt\\'"]
+ESCAPED                [nt\\''""]
 EXTENDER       __
 HYPHEN         --
 BOM_UTF8       \357\273\277
@@ -247,7 +247,7 @@ BOM_UTF8    \357\273\277
 <INITIAL,chords,lyrics,notes,figures>\\sourcefileline{WHITE}*  {
        yy_push_state (sourcefileline);
 }
-<version>\"[^"]*\"     { /* got the version number */
+<version>\"[^""]*\"     { /* got the version number */
        string s (YYText_utf8 () + 1);
        s = s.substr (0, s.rfind ('\"'));