You are here: PSPad forum > English discussion forum > Coloring Oracle Q-Literals
Posted by: garbuya | Date: 2018-02-06 15:33 | IP: IP Logged
Is there a way to proper color Oracle Q-Literals?
Oracle allows to enter literals in format
Q'open_char literal without doubling apostrophes closing_char'
For example
Q'[I'm back]'
Q'{I'm back}'
To enter a single apostrophe you can use
Q'{'}'
Currently this costs a complete mess in coloring -- everything after last apost is treated as a literal until next apost
Edited 2 time(s). Last edit at 2018-02-06 15:35 by garbuya.
Posted by: pspad | Date: 2018-02-06 15:51 | IP: IP Logged
I must look at highlighter behavior. Because I don't use Oracle, same as most of other syntaxes, I depend of information from users that something is wrong.
Can you specify it more or give me link to syntax description what can be taken as open/close char?
Posted by: garbuya | Date: 2018-02-06 15:55 | IP: IP Logged
Thank you for fast response.
Here is an example
livesql.oracle.com
Official site
docs.oracle.com
Edited 1 time(s). Last edit at 2018-02-06 15:59 by garbuya.
Posted by: pspad | Date: 2018-02-06 16:08 | IP: IP Logged
It means it can be near any character and for bracket you must use pairs. It's little crazy from my point of view.
How to recognize if this construction starts from normal string?
Posted by: garbuya | Date: 2018-02-06 16:16 | IP: IP Logged
Obviously, you cannot handle all possible permutations
I think, handling pairs [] {} <> () will be enough
So, if you see Q + apost + opening bracket, then everything till closed bracket + apost is literal
Edited 1 time(s). Last edit at 2018-02-06 16:19 by garbuya.
Posted by: pspad | Date: 2018-02-22 13:12 | IP: IP Logged
Available from next build
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR