From 754b31506407c0de632abbe47284326e07909d82 Mon Sep 17 00:00:00 2001 From: Rob Bearman Date: Tue, 24 Mar 2015 12:05:50 -0700 Subject: [PATCH] Fix issue where plural form of the following pragmas interfere with the key name used by the parser: attribute, method, event, property --- context-free-parser.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/context-free-parser.js b/context-free-parser.js index a6e27d4..15af98f 100644 --- a/context-free-parser.js +++ b/context-free-parser.js @@ -61,6 +61,13 @@ entities.push(current); break; + // an entity may *not* use these values, interfering with the sub-features below + case 'attributes': + case 'methods': + case 'events': + case 'properties': + break; + // an entity may have these describable sub-features case 'attribute': case 'property':