@puruslang/prettier-plugin-purus 0.2.0 → 0.3.0

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/package.json +1 -1
  2. package/src/index.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puruslang/prettier-plugin-purus",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Prettier plugin for the Purus language",
5
5
  "license": "Apache-2.0",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -7,9 +7,9 @@ const KEYWORDS = new Set([
7
7
  "while", "until", "for", "in", "range",
8
8
  "match", "when",
9
9
  "try", "catch", "finally", "throw",
10
- "import", "from", "export", "default", "require", "use", "mod", "pub", "all",
11
- "add", "sub", "mul", "div", "mod", "neg",
12
- "eq", "ne", "lt", "gt", "le", "ge",
10
+ "import", "from", "export", "default", "require", "use", "namespace", "pub", "all",
11
+ "add", "sub", "mul", "div", "mod", "neg", "pow",
12
+ "eq", "neq", "lt", "gt", "le", "ge",
13
13
  "and", "or", "not", "pipe",
14
14
  "is", "as", "of", "typeof", "instanceof", "type",
15
15
  "new", "delete", "this", "await",
@@ -23,7 +23,7 @@ const BLOCK_STARTERS = new Set([
23
23
  "while", "until", "for",
24
24
  "match", "when",
25
25
  "try", "catch", "finally",
26
- "mod",
26
+ "namespace",
27
27
  ]);
28
28
 
29
29
  function tokenize(source) {