@@ -21,6 +21,8 @@ Parenthesis matching code built on top of @racket[token-tree%].
21
21
@method[paren-tree% match-backward]. The @racket[paren-tree%] also supports a notion of invisible
22
22
parentheses that take up no space, where the opens exist only at the start of a token
23
23
and the closes exist only at the end of a token.
24
+
25
+ @history[#:changed "1.6 " @list{Added support for invisible parens.}]
24
26
}
25
27
26
28
@defmethod[(add-token [type (or/c #f symbol?)]
@@ -37,6 +39,8 @@ Parenthesis matching code built on top of @racket[token-tree%].
37
39
indicate how many of each there are on this token (note that
38
40
the invisible opens all exist at the start of the token and
39
41
the invisible closes all exist at the end of the token).
42
+
43
+ @history[#:changed "1.6 " @list{Added @racket[#:invisible-opens ] and @racket[#:invisible-closes ] arguments.}]
40
44
}
41
45
42
46
@defmethod[(match-forward [pos natural?]
@@ -70,6 +74,8 @@ Parenthesis matching code built on top of @racket[token-tree%].
70
74
highlighting. If all three are @racket[#f ], then there was
71
75
no tree to search, or the position did not immediately
72
76
precede an open.
77
+
78
+ @history[#:changed "1.6 " @list{Added @racket[#:invisible ] argument.}]
73
79
}
74
80
75
81
@defmethod[(match-backward [pos natural?]
@@ -89,6 +95,8 @@ Parenthesis matching code built on top of @racket[token-tree%].
89
95
@racket[paren-tree% match-forward]. So, if the match is
90
96
successful, the first result is the location of the open
91
97
paren and the second is the close.
98
+
99
+ @history[#:changed "1.6 " @list{Added @racket[#:invisible ] argument.}]
92
100
}
93
101
94
102
@defmethod[(split-tree [pos natural?]) void?]{
@@ -115,6 +123,8 @@ Parenthesis matching code built on top of @racket[token-tree%].
115
123
116
124
@defmethod[(get-invisible-count [pos natural?]) (values natural? natural?)]{
117
125
Returns the number of invisible opens and invisible closes at @racket[pos].
126
+
127
+ @history[#:added "1.6 " ]
118
128
}
119
129
]
120
130
0 commit comments