File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,18 @@ All notable changes to this project will be documented in this file.
6
6
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
7
7
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
8
8
9
+ ## [ 2.0.0] - 2024-05-13
10
+
11
+ ### BREAKING CHANGE
12
+
13
+ - Updated tree-sitter query to be compatible with the
14
+ tree-sitter-haskell v0.21.0 rewrite.
15
+ - If you are using nvim-treesitter to manage parser installations, run ` :TSUpdate `
16
+ to ensure you have the latest tree-sitter-haskell version.
17
+ - If you are using Nix with an older version of the parser,
18
+ you can either package tree-sitter-haskell,
19
+ or pin an older version of this plugin.
20
+
9
21
## [ 1.4.3] - 2023-12-15
10
22
11
23
### Fixed
Original file line number Diff line number Diff line change 41
41
--- @return string | nil
42
42
local function treesitter_module_name (apply , content , query_string )
43
43
assert (has_haskell_parser , ' No tree-sitter parser for Haskell found.' )
44
- query_string = query_string or ' (module ) @mod'
44
+ query_string = query_string or ' (module_id ) @mod'
45
45
local module_query = vim .treesitter .query .parse (hs_lang , query_string )
46
46
local lang_tree = vim .treesitter .get_string_parser (content , hs_lang , { injections = { [hs_lang ] = ' ' } })
47
47
local root = fast_parse (lang_tree ):root ()
You can’t perform that action at this time.
0 commit comments