@puruslang/prettier-plugin-purus 0.6.0 → 0.7.1

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
@@ -25,6 +25,13 @@ Purus — _/ˈpuː.rus/_ _**ラテン語で 純粋✨**_ — は、美しく、
25
25
 
26
26
  Purusは、 _Shiftキー_ をほとんど押さずにプログラミングできます。
27
27
 
28
+ ```purus
29
+ let name
30
+ name be ///Purus///
31
+ const message be ///Welcome to [name]!///
32
+ console.log[message] -- Welcome to Purus!
33
+ ```
34
+
28
35
  ## インストール
29
36
 
30
37
  ```sh
@@ -45,6 +52,7 @@ npm install -D purus
45
52
 
46
53
  ## ツール
47
54
 
55
+ - **Core** — [`purus`](https://www.npmjs.com/package/purus): Purusのコアシステム
48
56
  - **VS Code 拡張機能** — [Marketplace](https://marketplace.visualstudio.com/items?itemName=otoneko1102.purus): シンタックスハイライト、スニペット、ファイルアイコン
49
57
  - **リンター** — [`@puruslang/linter`](https://www.npmjs.com/package/@puruslang/linter): Purus の静的解析
50
58
  - **Prettier プラグイン** — [`@puruslang/prettier-plugin-purus`](https://www.npmjs.com/package/@puruslang/prettier-plugin-purus): コードフォーマッター
package/README.md CHANGED
@@ -25,6 +25,13 @@ Purus - _/ˈpuː.rus/_ _**means pure✨ in Latin**_ - is a beautiful, simple, an
25
25
 
26
26
  With Purus, you can write code almost without pressing the _Shift key_.
27
27
 
28
+ ```purus
29
+ let name
30
+ name be ///Purus///
31
+ const message be ///Welcome to [name]!///
32
+ console.log[message] -- Welcome to Purus!
33
+ ```
34
+
28
35
  ## Install
29
36
 
30
37
  ```sh
@@ -45,6 +52,7 @@ npm install -D purus
45
52
 
46
53
  ## Tooling
47
54
 
55
+ - **Core** — [`purus`](https://www.npmjs.com/package/purus): The core-system of Purus
48
56
  - **VS Code Extension** — [Marketplace](https://marketplace.visualstudio.com/items?itemName=otoneko1102.purus): Syntax highlighting, snippets, file icons
49
57
  - **Linter** — [`@puruslang/linter`](https://www.npmjs.com/package/@puruslang/linter): Static analysis for Purus
50
58
  - **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.1",
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) {