Skip to content

Commit 8a97ed9

Browse files
committed
Fix bug #5 (Can't scrub hex colors in .less files) - CodeMirror's
tokenizers aren't very consistent about naming... Update README install instructions for Brackets sprint 16+.
1 parent 60297e9 commit 8a97ed9

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ Everyscrub is an extension for [Brackets](https://github.com/adobe/brackets/), a
1313
To use Everyscrub:
1414

1515
1. [Download the ZIP](https://github.com/peterflynn/everyscrub/downloads) and unzip it; or clone this repo
16-
2. Place the everyscrub folder so the structure is: `brackets/src/extensions/user/everyscrub/main.js`
17-
3. Launch Brackets!
16+
2. Open your extensions folder: _Help > Show Extensions Folder_
17+
3. Place the folder so the structure is: `extensions/user/everyscrub/main.js`
18+
4. Restart Brackets!
19+
1820

1921
License
2022
=======

main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ define(function (require, exports, module) {
8888
// Color utils
8989
function getColorCandidate(token) {
9090
if (token.className === "atom") {
91-
// Colors in CSS are a type "atom"
91+
// Colors in CSS are type atom
92+
return token.string;
93+
} else if (token.className === "number") {
94+
// Colors in LESS are type number
9295
return token.string;
9396
} else if (token.className === "string") {
9497
// Token type string may contain a number, e.g. in HTML or SVG code

0 commit comments

Comments
 (0)