don't pick up tokens right of cursor

inspection of `foo(|a` was picking up 'a'
instead of 'foo' due to an off by one error
Merge pull request #6774 from minrk/token-boundary

don't pick up tokens right of cursor