--- /dev/null
+\header {
+
+ texidoc = "Identifiers following a chordmode section are not
+interpreted as chordmode tokens. In the following snippet, the
+identifier `m' is not interpreted by the lexer as as a minor chord
+modifier."
+
+}
+
+\version "2.11.55"
+
+myDisplayMusic =
+#(define-music-function (parser location music)
+ (ly:music?)
+ (display-scheme-music music)
+ (make-music 'SequentialMusic 'void #t))
+
+\myDisplayMusic \chordmode { c }
+
+m = \relative c' { c4 d e f }
+
+\new Staff { \m }
else if (scm_is_symbol (yylval.scm))
return DRUM_PITCH;
}
- else if ((handle = scm_hashq_get_handle (chordmodifier_tab_, sym))!= SCM_BOOL_F)
+ else if ((YYSTATE == chords)
+ && (handle = scm_hashq_get_handle (chordmodifier_tab_, sym))!= SCM_BOOL_F)
{
yylval.scm = scm_cdr (handle);
return CHORD_MODIFIER;