]> git.donarmstrong.com Git - lilypond.git/commit
Issue 5113/2: Parser: discriminate quoted and non-quoted strings
authorDavid Kastrup <dak@gnu.org>
Fri, 2 Nov 2012 16:56:23 +0000 (17:56 +0100)
committerDavid Kastrup <dak@gnu.org>
Sun, 9 Apr 2017 15:53:32 +0000 (17:53 +0200)
commitf9056caac3bda31437ed004d775fbae14ca61bf3
tree11b384453b1be30fbb6aac29ad01a07346bc9fd6
parentcc9f25fa7ad9eecd1d1d9cfc2b3c50d96a847386
Issue 5113/2: Parser: discriminate quoted and non-quoted strings

Checking quoted strings for syntactic correctness seems spurious, as does
splitting them into multiple symbols.  Now "x.y" is treated as a list
of two symbols without the quotation marks, but as a single string or
symbol when given quotation marks.

This allows using quotation marks for creating arbitrary symbols, and
consequently specifying key lists using quoted strings without the
strings being split in other components or being rejected because
of syntactical reasons.
lily/lexer.ll
lily/parser.yy