I am playing with some old code which assumes TP-like handling of nested comments: i.e. there is only one level of nested comments, the first comment limiter closes a comment. However, Lazarus handles comments like FPC: it counts the nesting level and does syntax highlighting accordingly. Is there any option I am missing so I get correct syntax highlighting for TP-like nested comment handling?
Mailing lists / lazarus / 2018-04
TP-like nested comment handling
5 messages · 3 people · –
- FFlorian Klaempfl 2
- FFlorian Klämpfl 2
- MMattias Gaertner 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I am playing with some old code which assumes TP-like handling of nested comments: i.e. there is only one level of nested comments, the first comment limiter closes a comment. However, Lazarus handles comments like FPC: it counts the nesting level and does syntax highlighting accordingly. Is there any option I am missing so I get correct syntax highlighting for TP-like nested comment handling?
I am playing with some old code which assumes TP-like handling of nested comments: i.e. there is only one level of nested comments, the first comment limiter closes a comment. However, Lazarus handles comments like FPC: it counts the nesting level and does syntax highlighting accordingly. Is there any option I am missing so I get correct syntax highlighting for TP-like nested comment handling?
I am playing with some old code which assumes TP-like handling of nested comments: i.e.…
Show quoted text 6 lines
Here this is highlighted and parsed correctly:
{$mode tp}
{ { }
begin
end.How do you tell Lazarus that the unit is tp mode?
Mattias
Mattias Gaertner wrote 17 lines
Well, only in the Project options because I didn't want to modify the source, this is why I asked how to switch the behavior (I found out I can do this by changing the highlighter to delphi).
BTW: {$mode iso/extpas} do not change the behavior either, only $mode tp does.
