     @buffer = ''
 
   loop: ->
-    while @pos < @source.length - 1
+    length = @source.length - 1
+    while @pos < length
       @move()
       @nextLetter()
     @endFile()

    @source[@pos..@pos + string.length - 1] == string

  space: ->
    @letter.match(/\s/)

  init: (node) ->
    @current.push(node)


path = require('path')

isSpace = /\s/

# CSS parser
class Parser
  constructor: (source, @opts) ->
