@bablr/agast-helpers 0.11.2 → 0.11.3

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/lib/builders.js +2 -0
  2. package/package.json +1 -1
package/lib/builders.js CHANGED
@@ -898,10 +898,12 @@ export const parseReferenceTag = (tag) => {
898
898
  chr = str[++p.idx];
899
899
  }
900
900
 
901
+ let quotedIdent = chr === '`';
901
902
  if (!type || (type === '#' && canStartIdentifier(chr))) {
902
903
  name = parseIdentifier(p);
903
904
  chr = str[p.idx];
904
905
  }
906
+ if (!type && !quotedIdent && name === 'null') throw new Error();
905
907
  while (chr === ' ') chr = str[++p.idx];
906
908
 
907
909
  let flags = parseReferenceFlags(p);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bablr/agast-helpers",
3
3
  "description": "Helper functions for working with agAST trees",
4
- "version": "0.11.2",
4
+ "version": "0.11.3",
5
5
  "author": "Conrad Buck<conartist6@gmail.com>",
6
6
  "type": "module",
7
7
  "files": [