@quenk/wml 2.11.3 → 2.11.4

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.
package/lib/parse/wml.y CHANGED
@@ -373,15 +373,18 @@ view_statement
373
373
  ;
374
374
 
375
375
  view_statement_context
376
- : type
376
+ : constructor_type
377
377
  { $$ = $1; }
378
378
 
379
- | unqualified_constructor FROM string_literal
380
- {$$ = new yy.ast.ImportStatement(new yy.ast.CompositeMember([$1],@$),
381
- $3, @$);
382
- }
379
+ | context_from_statement
380
+ {$$ = $1; }
383
381
  ;
384
382
 
383
+ context_from_statement
384
+ : constructor_type FROM string_literal
385
+ {$$ = new yy.ast.ContextFromStatement($1, $3, @$); }
386
+ ;
387
+
385
388
  view_directives
386
389
  : let_statement
387
390
  { $$ = [$1]; }
@@ -469,7 +472,7 @@ constructor_type
469
472
  { $$ = new yy.ast.ConstructorType($1, [], @$); }
470
473
 
471
474
  | cons type_parameters
472
- { $$ = new yy.ast.ConstructorType($1, $2, @$); }
475
+ { $$ = new yy.ast.ConstructorType($1, $2, @$); }
473
476
  ;
474
477
 
475
478
  record_type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenk/wml",
3
- "version": "2.11.3",
3
+ "version": "2.11.4",
4
4
  "description": "(WML) is a DSL for describing user interfaces in web applications.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {