@cilix/lightjs 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/core.js +8 -1
  2. package/package.json +1 -1
package/core.js CHANGED
@@ -998,6 +998,9 @@ module.exports = (config, fs, path) => {
998
998
  if (accept("ident") || accept("as")) {
999
999
  // allow ':' in attribute names
1000
1000
  while (accept(':')) {
1001
+ if (key === 'bind') {
1002
+ includeRuntime = true;
1003
+ }
1001
1004
  key += ':'
1002
1005
  key += tok.data;
1003
1006
  expect("ident");
@@ -1365,7 +1368,6 @@ module.exports = (config, fs, path) => {
1365
1368
  } else if (peek('js_context')) {
1366
1369
  includeRuntime = true;
1367
1370
  ast_node('js', { js: tok.data, pos: tok.pos, file: tok.file });
1368
- js_found = true;
1369
1371
  next();
1370
1372
  } else {
1371
1373
  throw_error({ msg: "unexpected: " + tok.type, pos: tok.pos, file: tok.file });
@@ -1579,6 +1581,11 @@ module.exports = (config, fs, path) => {
1579
1581
  }
1580
1582
  }
1581
1583
  } break;
1584
+ case 'when': {
1585
+ // immediately print else
1586
+ // mark first child with id_#child_count
1587
+ walk(node.children[1]);
1588
+ } break;
1582
1589
  case 'if': {
1583
1590
  if (evaluate(node.data)) {
1584
1591
  walk(node.children[0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cilix/lightjs",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "A new kind of JavaScript framework",
5
5
  "main": "index.js",
6
6
  "scripts": {