Skip to content

Commit

Permalink
add support for pseudo elements
Browse files Browse the repository at this point in the history
needs tests

see #13
  • Loading branch information
fb55 committed Apr 17, 2015
1 parent 642079e commit 3083ac0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ function parseSelector(subselects, selector, options){
});

} else if(firstChar === ":"){
//if(selector.charAt(1) === ":"){} //TODO pseudo-element
if(selector.charAt(1) === ":"){
selector = selector.substr(2);
tokens.push({type: "pseudo-element", name: getName().toLowerCase()});
continue;
}

selector = selector.substr(1);

Expand Down

0 comments on commit 3083ac0

Please sign in to comment.