mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:59:20 +02:00
SynEdit, Pas Highlighter: show ^x as string / fix ^ in front of {$
git-svn-id: trunk@47513 -
This commit is contained in:
parent
c9d7e64a6b
commit
3d34fff0a3
@ -2756,8 +2756,14 @@ begin
|
|||||||
) and
|
) and
|
||||||
(fRange * [rsInTypeBlock, rsAfterEqual] = [rsAfterEqual]) )
|
(fRange * [rsInTypeBlock, rsAfterEqual] = [rsAfterEqual]) )
|
||||||
then begin
|
then begin
|
||||||
if Run<fLineLen then
|
if Run<fLineLen then begin
|
||||||
|
if (Run+1 < fLineLen) and (fLine[Run] = '{') and (fLine[Run+1] = '$') then begin
|
||||||
|
// "{$" directive takes precedence
|
||||||
|
fTokenID := tkSymbol;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
inc(Run);
|
inc(Run);
|
||||||
|
end;
|
||||||
fTokenID := tkString;
|
fTokenID := tkString;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user