1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00

Multi-line Nyquist header directives allow embedded comments

This commit is contained in:
Paul Licameli 2018-03-27 15:10:19 -04:00
parent b92e334873
commit 6f52df545e

View File

@ -1640,6 +1640,12 @@ bool NyquistEffect::Tokenizer::Tokenize(
// Unenclosed whitespace // Unenclosed whitespace
// Separate tokens; don't accumulate this character // Separate tokens; don't accumulate this character
endToken(); endToken();
else if (!q && c == wxT(';'))
// semicolon not in quotes, but maybe in parentheses
// Lisp style comments with ; (but not with #| ... |#) are allowed
// within a wrapped header multi-line, so that i18n hint comments may
// be placed before strings and found by xgettext
break;
else if (!q && c == wxT('(')) { else if (!q && c == wxT('(')) {
// Start of list or sublist // Start of list or sublist
if (++paren == 1) if (++paren == 1)