mirror of https://gitlab.com/basile.b/dexed.git
note about HL scanner using char(10) to get eol
This commit is contained in:
parent
2a3cb6dba1
commit
db8c89da93
|
@ -464,6 +464,10 @@ end;
|
||||||
procedure TSynD2Syn.setLine(const NewValue: String; LineNumber: Integer);
|
procedure TSynD2Syn.setLine(const NewValue: String; LineNumber: Integer);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
// note: the end of line is marked with a #10
|
||||||
|
// usually a TSynCustomFoldHighlighter rather tests 'length(line)' in 'Next()'
|
||||||
|
// but since the scanner works line by line, #10 is guaranteed not to
|
||||||
|
// appear at all excepted when added implictly, like here.
|
||||||
fLineBuf := NewValue + #10;
|
fLineBuf := NewValue + #10;
|
||||||
fTokStop := 1;
|
fTokStop := 1;
|
||||||
next;
|
next;
|
||||||
|
|
Loading…
Reference in New Issue