isagalaev/highlight.js — pull request #673 by timrossinfo (2014-12-11 22:54:48+00:00)
Title: Fix for Swift "class" keyword matching

Currently the Swift highlighting will match class keywords that appear within another word. For example:

```swift
var instruction = Instruction()
```

Will match the *struct* in *instruction* and break the highlighting.

This patch updates the regular expression to only match "class" keywords that are at the start of a line, or preceded by any non-word character (e.g. space or tab).