Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Add basic support for @mixin and url to where its defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Dec 13, 2014
1 parent f4de18b commit 62abb61
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions context-free-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
};
entities.push(current);
break;

// an entity may have these describable sub-features
case 'attribute':
case 'property':
Expand Down Expand Up @@ -94,7 +94,17 @@
}

break;


case 'extends':
case 'mixins':
var parts = content.split(' ');
var subObj = {
name: parts[0],
url: parts[1] || null
};
makePragma(current, pragma, subObj);
break;

// everything else
default:
current[pragma] = content;
Expand Down

0 comments on commit 62abb61

Please sign in to comment.