Skip to content

Commit ba73e21

Browse files
committed
FIX: input string! token issue
1 parent 238a8c2 commit ba73e21

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

semantic.red

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,14 @@ semantic: context [
601601
if nested/1/error [return false]
602602
write-log "empty pair"
603603
]
604+
type = string! [
605+
if nested/1/error [return false]
606+
write-log "string"
607+
]
608+
type = file! [
609+
if nested/1/error [return false]
610+
write-log "file"
611+
]
604612
find all-path! type [
605613
start: nested/1/range/1
606614
nnested: nested/1/nested
@@ -2754,7 +2762,10 @@ completion: context [
27542762
complete-file top pc comps
27552763
return comps
27562764
]
2757-
complete-word top pc comps
2765+
if find [word! lit-word! get-word!] to word! pc/1/type [
2766+
complete-word top pc comps
2767+
return comps
2768+
]
27582769
comps
27592770
]
27602771

0 commit comments

Comments
 (0)