#36 closed defect (later)
quotes have priority with respect to double slashes
Reported by: | imendez | Owned by: | manuelb |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Interface | Version: | head |
Severity: | trivial | Keywords: | |
Cc: |
Description
when a line is commented with double slashes (''), the texts between double
quotes are resalted in red, as if they weren´t commented.
It doesn´t occurs when a paragraph is commented with '/*' and '*/' markers.
Change History (4)
comment:1 Changed 21 years ago by
Owner: | changed from Javier Portugal to manuelb |
---|
comment:2 Changed 21 years ago by
Status: | new → assigned |
---|
comment:3 Changed 21 years ago by
Resolution: | → later |
---|---|
Status: | assigned → closed |
Hi.
First of all, this is an old failure, check the TODO file under the tolbase source code
for a description.
I'm afraid the library we use for text highlighting, ctext, although has been tweaked
to fix our highlighting multi-line problems, has still one thing to do:
Almost all code that involves the use of line () comments is likely to fail, because
the highlighting code does not recognize it as a comment but as a regular
expression, and therefore is overpowered by text in quotes and block comments.
This problem is responsable of things such as:
" text line with on it" ; WriteLn("Something");
Or:
/* commented block
with line comments */; WriteLn("Will highlight all line remaining text in blue");
Or the one you mention:
Comments with " text in quotes".
The exact problem has to do with the fact that ctext is not able of detecting the end
of line character, and therefore treating line comments as such, instead of using a
regular expression.
In resume: We are working on this problem, will be fixed it in the future.
comment:4 Changed 20 years ago by
blocked: | → 111 |
---|
I will take care of this one, Javier.