summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn ffitch <jpff@codemist.co.uk>2018-12-11 17:27:43 +0000
committerSam Hartman <hartmans@debian.org>2019-03-21 10:31:29 -0400
commit2034988ed7c7cc156f720cae8c19d455f2a78542 (patch)
treed1c09b6c460966b50ed6df05c24aa44861b64702
parentd4ff8771a25298faa557cfecad9dce7b241d185d (diff)
fix n and m in score strings
Gbp-Pq: Name fix-n-and-m-in-score-strings.patch
-rw-r--r--Engine/csound_prs.lex8
1 files changed, 6 insertions, 2 deletions
diff --git a/Engine/csound_prs.lex b/Engine/csound_prs.lex
index 6ad48079..8254dda6 100644
--- a/Engine/csound_prs.lex
+++ b/Engine/csound_prs.lex
@@ -542,8 +542,12 @@ NM [nm][ \t]+
}
}
{NM} {
- corfile_putc(csound, yytext[0], PARM->cf);
- if (!PARM->isString) BEGIN(lname);
+ if (PARM->isString) {
+ corfile_putc(csound, yytext[0], PARM->cf);
+ BEGIN(lname);
+ } else {
+ corfile_puts(csound, yytext, PARM->cf);
+ }
}
<lname>[ \t]* /* eat the whitespace */
<lname>{IDENT} {