File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 195
195
(cadr (caddr e))
196
196
e))
197
197
198
- (define (dotop? o ) (and (symbol? o) (eqv? (string.char (string o) 0 ) #\. )))
198
+ (define (dotop? o ) (and (symbol? o) (eqv? (string.char (string o) 0 ) #\. )
199
+ (not (eq? o '|.| ))
200
+ (not (eqv? (string.char (string o) 1 ) #\. ))))
199
201
200
202
; convert '.xx to 'xx
201
203
(define (undotop op )
207
209
(define (maybe-undotop e )
208
210
(if (symbol? e)
209
211
(let ((str (string e)))
210
- (if (eqv? (string.char str 0 ) #\. )
212
+ (if (and (eqv? (string.char str 0 ) #\. )
213
+ (not (eq? e '|.| ))
214
+ (not (eqv? (string.char str 1 ) #\. )))
211
215
(symbol (string.sub str 1 (length str)))
212
216
#f ))
213
217
(if (pair? e)
Original file line number Diff line number Diff line change 108
108
(define dot-opchar? (Set
109
109
(delete-duplicates
110
110
(map (lambda (op ) (string.char (string op) 1 ))
111
- (filter (lambda (op ) (and (dotop? op) (not (eq? op '|.| ))))
112
- operators)))))
111
+ (cons `|..| (filter dotop? operators))))))
113
112
(define operator? (Set operators))
114
113
115
114
(define initial-reserved-words '(begin while if for try return break continue
Original file line number Diff line number Diff line change 863
863
864
864
@test QualifiedStringMacro. SubModule. x "" === 1
865
865
@test QualifiedStringMacro. SubModule. y `` === 2
866
+
867
+ let .. (x,y) = x + y
868
+ @test 3 .. 4 === 7
869
+ end
You can’t perform that action at this time.
0 commit comments