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

Hello.

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
robert
 
Posts: 798
Joined: Sat May 10, 2008 5:16 pm

Re: Newline character in *TokenMaker(s)

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

Hi.

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: No registered users and 1 guest

cron