         @lastIndex += -matchText.length + index + color.colorExpression.length
         matchText = color.colorExpression
 
-      properties =
+      new BufferColor
         color: color
         match: matchText
         textRange: [

[registry, regexpString, regexp] = []
ColorParser = require './color-parser'

module.exports =
class ColorScanner

          @buffer.positionForCharacterIndex(@lastIndex - matchText.length)
          @buffer.positionForCharacterIndex(@lastIndex)
        ]
