Fix for Swift "class" keyword matching

Only match "class" keywords that are at the start of a line, or preceded by any non-word character (e.g. space or tab)