-
Notifications
You must be signed in to change notification settings - Fork 3
/
macro-comments.tal
39 lines (33 loc) · 955 Bytes
/
macro-comments.tal
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
%MACRO { x ( x ) x }
%MACRO { x (x x ) x }
%MACRO { x (x x )x ) x }
%MACRO { x (x) x )x()() x ) x }
%MACRO { x (x) x)X )x()() x ) x }
%MACRO { x (
BRK LIT2kr @label/label &sublabel
.label #12 #abcd $1 |100 ~lib.tal
"string [ ]
) x }
%MACRO { X( x )X ) x }
( Nested comments )
%MACRO { x ( x ( x ) x ) x }
%MACRO { x (x x ( x ) x ) x }
%MACRO { x ( x ( x )x x ) x ) x }
%MACRO { x (x x ( x )x x ) x ) x }
%MACRO { x ( x ( x ( x ) x ) x ) x }
( Not nested -- inner comment has other characters after the `(` )
%MACRO { x ( x (x x ) x ) x }
%MACRO { x (x x (x x ) x ) x }
%MACRO { x (x x (x )x ) x } x
%MACRO { x (x x (x x ) x } x
( Unclosed comments )
%MACRO { x ( x } x
%MACRO { x (x x } x
%MACRO { x (x ( x ) x } x
( Nested macros )
%MACRO { x ( x %NESTED x ) x } ( Nested macro definition gets highlighted )
%MACRO { x ( x ( x %NESTED x ) x ) x }
%MACRO { x ( x %NESTED { x } x
( Macros in comments )
x ( x %MACRO { x } x ) x
x ( } ) x