Skip to content

Commit

Permalink
Implement support for color provided by pigments during scan
Browse files Browse the repository at this point in the history
It enables parsing of colors using variables defined in the
same file.
  • Loading branch information
abe33 committed Jun 3, 2014
1 parent 02774e4 commit dedf26f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/atom-color-highlight-model.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,12 @@ class AtomColorHighlightModel
results = [] unless results?

for res in results
{bufferRange: range, match: color} = res
colorObject = new Color(color)
{bufferRange: range, match, color} = res

if marker = @findMarker(color, range)
if marker = @findMarker(match, range)
delete markersToRemoveById[marker.id]
else
marker = @createMarker(color, colorObject, range)
marker = @createMarker(match, color, range)

updatedMarkers.push marker

Expand Down

0 comments on commit dedf26f

Please sign in to comment.