@puruslang/prettier-plugin-purus 0.6.0 → 0.7.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.
package/README-ja.md CHANGED
@@ -45,6 +45,7 @@ npm install -D purus
45
45
 
46
46
  ## ツール
47
47
 
48
+ - **Core** — [`purus`](https://www.npmjs.com/package/purus): Purusのコアシステム
48
49
  - **VS Code 拡張機能** — [Marketplace](https://marketplace.visualstudio.com/items?itemName=otoneko1102.purus): シンタックスハイライト、スニペット、ファイルアイコン
49
50
  - **リンター** — [`@puruslang/linter`](https://www.npmjs.com/package/@puruslang/linter): Purus の静的解析
50
51
  - **Prettier プラグイン** — [`@puruslang/prettier-plugin-purus`](https://www.npmjs.com/package/@puruslang/prettier-plugin-purus): コードフォーマッター
package/README.md CHANGED
@@ -45,6 +45,7 @@ npm install -D purus
45
45
 
46
46
  ## Tooling
47
47
 
48
+ - **Core** — [`purus`](https://www.npmjs.com/package/purus): The core-system of Purus
48
49
  - **VS Code Extension** — [Marketplace](https://marketplace.visualstudio.com/items?itemName=otoneko1102.purus): Syntax highlighting, snippets, file icons
49
50
  - **Linter** — [`@puruslang/linter`](https://www.npmjs.com/package/@puruslang/linter): Static analysis for Purus
50
51
  - **Prettier Plugin** — [`@puruslang/prettier-plugin-purus`](https://www.npmjs.com/package/@puruslang/prettier-plugin-purus): Code formatting
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puruslang/prettier-plugin-purus",
3
- "version": "0.6.0",
3
+ "version": "0.7.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
@@ -5,9 +5,9 @@ const KEYWORDS = new Set([
5
5
  "fn", "async", "return", "to", "gives",
6
6
  "if", "elif", "else", "unless", "then",
7
7
  "while", "until", "for", "in", "range",
8
- "match", "when",
8
+ "match", "when", "witch", "case",
9
9
  "try", "catch", "finally", "throw",
10
- "import", "from", "export", "default", "require", "use", "namespace", "pub", "all", "with",
10
+ "import", "from", "export", "default", "require", "use", "namespace", "public", "all", "with",
11
11
  "add", "sub", "mul", "div", "mod", "neg", "pow",
12
12
  "eq", "neq", "lt", "gt", "le", "ge",
13
13
  "and", "or", "not", "pipe", "coal",
@@ -22,9 +22,7 @@ const KEYWORDS = new Set([
22
22
  const BLOCK_STARTERS = new Set([
23
23
  "fn", "if", "elif", "else", "unless",
24
24
  "while", "until", "for",
25
- "match", "when",
26
- "try", "catch", "finally",
27
- "namespace", "class",
25
+ "match", "when", "witch", "case",
28
26
  ]);
29
27
 
30
28
  function tokenize(source) {