grasp-syntax-javascript
Advanced tools
Comparing version 0.2.0 to 0.2.1
70
index.js
@@ -1,2 +0,2 @@ | ||
// Generated by LiveScript 1.4.0 | ||
// Generated by LiveScript 1.5.0 | ||
(function(){ | ||
@@ -22,2 +22,22 @@ var ref$, each, keys, difference, intersection, syntax, syntaxFlat, i$, category, nodeName, node, complexTypes, complexTypeMap, key, val, aliasMap, matchesMap, matchesAliasMap, literals, literalMap, attrMap, attrMapInverse, alias, name, primitiveAttributesSet, nonPrimitiveAttributesSet, that, nonPrimitiveAttributes, primitiveAttributes, eitherAttributes, primitiveOnlyAttributes; | ||
}, | ||
StringLiteral: { | ||
alias: 'literal-str', | ||
primitives: ['value'], | ||
example: ['"string"'] | ||
}, | ||
NumericLiteral: { | ||
alias: 'literal-num', | ||
primitives: ['value'], | ||
example: ['1'] | ||
}, | ||
BooleanLiteral: { | ||
alias: 'literal-bool', | ||
primitives: ['value'], | ||
example: ['true'] | ||
}, | ||
NullLiteral: { | ||
alias: 'literal-null', | ||
primitives: ['value'], | ||
example: ['null'] | ||
}, | ||
RegExpLiteral: { | ||
@@ -408,2 +428,50 @@ alias: 'regex', | ||
} | ||
}, | ||
JSX: { | ||
JSXIdentifier: { | ||
alias: 'jsx-ident', | ||
primitives: ['name'] | ||
}, | ||
JSXMemberExpression: { | ||
alias: 'jsx-member', | ||
nodes: ['object', 'property'] | ||
}, | ||
JSXNamespacedName: { | ||
alias: 'jsx-namespaced-name', | ||
nodes: ['namespace', 'name'] | ||
}, | ||
JSXEmptyExpression: { | ||
alias: 'jsx-empty' | ||
}, | ||
JSXExpressionContainer: { | ||
alias: 'jsx-exp-container', | ||
nodes: ['expression'] | ||
}, | ||
JSXSpreadChild: { | ||
alias: 'jsx-spread-child', | ||
nodes: ['expression'] | ||
}, | ||
JSXOpeningElement: { | ||
alias: 'jsx-open', | ||
nodes: ['name'], | ||
nodeArrays: ['attributes'], | ||
primitives: ['selfClosing'] | ||
}, | ||
JSXClosingElement: { | ||
alias: 'jsx-close', | ||
nodes: ['name'] | ||
}, | ||
JSXAttribute: { | ||
alias: 'jsx-attr', | ||
nodes: ['name', 'value'] | ||
}, | ||
JSXSpreadAttribute: { | ||
alias: 'jsx-spread-attr', | ||
nodes: ['argument'] | ||
}, | ||
JSXElement: { | ||
alias: 'jsx-element', | ||
nodes: ['openingElement', 'closingElement'], | ||
nodeArrays: ['children'] | ||
} | ||
} | ||
@@ -410,0 +478,0 @@ }; |
{ | ||
"name": "grasp-syntax-javascript", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": "George Zahariev <z@georgezahariev.com>", | ||
@@ -33,3 +33,3 @@ "description": "grasp query engines common parts", | ||
"devDependencies": { | ||
"livescript": "~1.4.0", | ||
"livescript": "~1.5.0", | ||
"mocha": "~2.1.0", | ||
@@ -36,0 +36,0 @@ "istanbul": "~0.1.43" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20192
601