@willbooster/tree-sitter-haskell 1.0.1 → 1.0.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.
package/README.md CHANGED
@@ -12,7 +12,7 @@ Haskell grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), f
12
12
  [tree-sitter/tree-sitter-haskell](https://github.com/tree-sitter/tree-sitter-haskell). We are grateful
13
13
  to its authors and contributors. This is not an official release of that project.
14
14
 
15
- This fork keeps the grammar of upstream's version 0.23.1 and generates the parser with the
15
+ This fork is based on upstream's version 0.23.1 grammar and generates the parser with the
16
16
  [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parser carries that fork's own ABI number, so it loads only with that fork's runtime, version 2.0.0
17
17
  or later; upstream's runtime rejects it.
18
18
  [Upstream's README at that version](https://github.com/tree-sitter/tree-sitter-haskell/blob/v0.23.1/README.md) lists
@@ -21,9 +21,12 @@ readme that the comments in `grammar.js` refer to.
21
21
 
22
22
  ## Differences from upstream
23
23
 
24
- `grammar.js`, the files in `grammar/`, the external scanner (`src/scanner.c`, `src/unicode.h`), `queries/`, and
25
- upstream's corpus are those of upstream's 0.23.1, except for:
24
+ The fork's main differences from upstream 0.23.1 are:
26
25
 
26
+ - **Comment scanning**: an ordinary line comment does not absorb a following marked Haddock comment.
27
+ Unmarked continuation lines remain in their preceding Haddock block, including space or tab indentation and LF or CRLF newlines.
28
+ First-column ordinary comments combine with LF line endings.
29
+ CRLF and indented ordinary comments remain separate comment nodes.
27
30
  - **`queries/highlights.scm`**: three patterns that match fields of the supertype `decl` are written through its
28
31
  subtypes (`decl/function`, `decl/bind`, `decl/signature`), as upstream's repository has them since
29
32
  `tree-sitter/tree-sitter-haskell@0b2ebf7`. A parser of ABI 15 or later carries the supertypes, and the runtime then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-haskell",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Haskell grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -15,7 +15,7 @@
15
15
  }
16
16
  ],
17
17
  "metadata": {
18
- "version": "1.0.1",
18
+ "version": "1.0.3",
19
19
  "license": "MIT",
20
20
  "description": "Haskell grammar for tree-sitter",
21
21
  "authors": [