]> git.donarmstrong.com Git - lilypond.git/commit
Unify the lexer's idea of words and commands across all modes.
authorDavid Kastrup <dak@gnu.org>
Sun, 29 Jul 2012 14:05:10 +0000 (16:05 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 5 Aug 2012 23:28:01 +0000 (01:28 +0200)
commit70a153b14ba32767e1ecbe680f435bdd533ae819
tree054f74a8ea638a30c48e7d3516f4197e689d839b
parent7a1912b8a517cd565ce8ef0acf137029adceab77
Unify the lexer's idea of words and commands across all modes.

A "word" (a string recognized even when not quoted) and a "command"
(something starting with \ and followed by letters and other folderol,
indicating a Scheme control sequence or similar) get the same syntax
in all modes:

A "word" is a sequence of alphabetic characters possibly containing
single dashes or underlines inside (not at the beginning or end).

A "command" is a "word" preceded by a backslash.
lily/lexer.ll