Treat ';' and '{' as word separators, so that from input like like "{import Foo" and ";;;;import Foo", the 'Foo' imports are identified.