File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,19 @@ Julia tree-sitter grammar will be automatically downloaded and compiled when a
44
44
Julia file is opened using the major mode ` julia-ts-mode ` . For more information
45
45
on how to install and configure ` treesit-auto ` , check the package documentation.
46
46
47
+ ### Upgrading grammar after a package update
48
+
49
+ Note that the [ tree-sitter grammar for
50
+ Julia] ( https://github.com/tree-sitter/tree-sitter-julia ) is under active
51
+ development, and breaking changes are often introduced between versions. To
52
+ provide maximum compatibility, the exact version of the grammar library is fixed
53
+ in ` julia-ts-mode.el ` , with planned regular updates to both the grammar version
54
+ and the tree-sitter queries built on top of it. However, the grammar library
55
+ itself isn't updated automatically by Emacs. If, after a ` julia-ts-mode ` package
56
+ update, you get some quirky tree-sitter error messages, and font-locking fails
57
+ to work in a ` julia-ts-mode ` buffer, run `M-x treesit-install-language-grammar
58
+ RET julia RET` to upgrade the grammar library. This should resolve the issues.
59
+
47
60
# LSP Configuration
48
61
49
62
This mode is derived from ` julia-mode ` . Hence, most of the feature available for
You can’t perform that action at this time.
0 commit comments