From 62abb6143d4ee6a952065d827171342e9ffd24ff Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Sat, 13 Dec 2014 13:52:28 -0800 Subject: [PATCH] Add basic support for @mixin and url to where its defined --- context-free-parser.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/context-free-parser.js b/context-free-parser.js index bd70d4b..2bd3700 100644 --- a/context-free-parser.js +++ b/context-free-parser.js @@ -60,7 +60,7 @@ }; entities.push(current); break; - + // an entity may have these describable sub-features case 'attribute': case 'property': @@ -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;