-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHighlightingTest.pas
More file actions
59 lines (45 loc) · 1.33 KB
/
HighlightingTest.pas
File metadata and controls
59 lines (45 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
program HighlightingTest;
{$product 'HighlightingTest'} {$apptype console} {$platformtarget x64}
type
IHighlighting = interface end;
THighlightingstruct = record(IHighlighting) end;
THighlighting = abstract class(IHighlighting) end;
TA = sealed class(THighlighting)
internal procedure Void() := exit;
internal function Func(); virtual := 1;
public function ToString(): string; override := $'Format string supported = {boolean.TrueString} but not integers like {2 * 2}';
public event E: Action0;
end;
TB = auto class
private field := 1;
protected property Prop: integer read field write field := value;
public function ContextWords: object;
begin
var value := 1;
Result := self;
end;
end;
{$ifdef DEBUG} {$else} {$endif}
{$region TTT} {$endregion}
procedure Print(self: object); extensionmethod := Write(self);
function CreateSeq<T>(params a: array of T): IEnumerable<T>;
begin
yield sequence a;
end;
begin
while false do;
if true then;
loop 1 do;
repeat until true;
for var i := 0 to -1 do;
foreach var x in Arr(1, 2, 3) do;
var i := default(integer);
var j := new TA();
if true and false or true xor false then;
try
raise new Exception();
except on e: Exception do
end;
var vv := new class(a := 1);
var a := nil as object;
end.