diff --git a/tokenslice.go b/tokenslice.go index 7f0be64..7906164 100644 --- a/tokenslice.go +++ b/tokenslice.go @@ -109,6 +109,8 @@ func (t TokenSlice) WordbreakPrefix() string { switch token.State { case QUOTING_STATE, QUOTING_ESCAPING_STATE: found = true + // TODO add value up to quote to prefix + continue } if found { @@ -116,8 +118,5 @@ func (t TokenSlice) WordbreakPrefix() string { } } - if prefix == "" && len(t) > 0 { - prefix = "~" - } return prefix }