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

Commit

Permalink
Merge pull request #1 from Polymer/master
Browse files Browse the repository at this point in the history
pull latest changes from polymer
  • Loading branch information
Ulysse Prygiel committed Jan 26, 2015
2 parents 89c2639 + d1f2875 commit f9c7c31
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
18 changes: 14 additions & 4 deletions context-free-parser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
Expand Down 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 Expand Up @@ -127,4 +137,4 @@
scope.ContextFreeParser = ContextFreeParser;
}

})(this);
})(this);
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "polymer-context-free-parser",
"version": "0.4.2",
"description": "context-free-parser scrapes source documentation data from input text or url.",
"main": "context-free-parser.js",
"repository": {
"type": "git",
"url": "ssh://[email protected]/Polymer/context-free-parser.git"
},
"author": "The Polymer Authors",
"license": "BSD",
"bugs": {
"url": "https://github.com/Polymer/context-free-parser/issues"
},
"homepage": "https://github.com/Polymer/context-free-parser"
}

0 comments on commit f9c7c31

Please sign in to comment.