Fix counting of slashes in RegexpLiteral.

Closes #627.
Merge pull request #635 from jonas054/fix_slash_corner_case

Fix counting of slashes in RegexpLiteral.