"use strict";

function prefixed(obj, prefix) {
    return Array.prototype.concat.call(obj).map(item => (prefix||':') + item)
};

let Syntax = (prefix) => {
    return {
        entity: ['self', 'this', 'here'],
        attributes: prefixed(['is', 'of', 'as']),
        elements: prefixed(['import', 'include', 'if', 'else', 'endif', 'fi']),
        void: prefixed('void'),
        voidElements: ['import', 'include'],
        helper: prefixed('as')
    };
}

export default Syntax

@@ -183,14 +183,14 @@
     
-entity
+ENTITY
 : %5B'
@@ -226,18 +226,17 @@
     
-attributes
+ATTRIBUTE
 : pr
@@ -276,16 +276,15 @@
     
-elements
+ELEMENT
 : pr
@@ -348,24 +348,26 @@
 ),%0D%0A        
+/*
 void: prefix
@@ -419,24 +419,26 @@
  'include'%5D,
+*/
 %0D%0A        he
@@ -439,14 +439,14 @@
     
-helper
+HELPER
 : pr

capitalize Syntax exports