Newline character in *TokenMaker(s)

Questions on using RSyntaxTextArea should go here.

Moderator: robert

Newline character in *TokenMaker(s)

Postby _ » Fri Jan 20, 2012 11:54 pm


It appears that the newline character, of every line, is not passed to the *TokenMaker(s), is that the intended behaviour?

I'm doing a *TokenMaker and I need to check for the newline character.
I can use the <<EOF>> as workaround, thought.

Best regards.

Re: Newline character in *TokenMaker(s)

Postby robert » Sat Jan 21, 2012 11:35 pm

Yes, it appears that that's just the way it's always been, despite the fact that most (all?) of the built-in TokenMakers appear to try to take '\n' into account. I'd be afraid to change things at this point to have the parsers be fed the trailing newlines, in case it somehow broke something.

If <<EOF>> is a sufficient workaround for you, then great! If not, please let me know.
User avatar
Posts: 852
Joined: Sat May 10, 2008 5:16 pm

Re: Newline character in *TokenMaker(s)

Postby _ » Sun Jan 22, 2012 5:59 pm


Thank you for your prompt reply.

If I have any problem with this I'll let you know.

Best regards.

Return to Help

Who is online

Users browsing this forum: Google [Bot] and 2 guests