Completion search scope based on syntax table.