Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat .mli files as ocaml #17

Closed
Wilfred opened this issue Jul 13, 2021 · 0 comments
Closed

Treat .mli files as ocaml #17

Wilfred opened this issue Jul 13, 2021 · 0 comments

Comments

@Wilfred
Copy link
Owner

Wilfred commented Jul 13, 2021

No description provided.

Wilfred pushed a commit that referenced this issue Sep 6, 2021
don't highlight keyword if it's a function name
Wilfred pushed a commit that referenced this issue Feb 3, 2022
jbr pushed a commit to jbr/difftastic that referenced this issue Mar 30, 2022
closes Wilfred#17

This refactor brings this grammar more in line with tree-sitter-rust.
A function or type declaration may have a visibility modifier ("pub") and
type declarations may also have an opacity modifier ("opaque"). This ends
up reducing the number of named rules, which cleans up the queries a bit.
ido77778 pushed a commit to ido77778/difftastic that referenced this issue May 3, 2022
Big thanks to @ibhagwan for your contribution
Wilfred pushed a commit that referenced this issue Jul 11, 2022
gurjeet pushed a commit to gurjeet/difftastic that referenced this issue Sep 20, 2022
Wilfred pushed a commit that referenced this issue Jan 26, 2023
* add new highlights

* more highlights

* @variable.parameter to @parameter

* add ERROR highlight
Wilfred pushed a commit that referenced this issue Aug 9, 2023
rody pushed a commit to rody/difftastic that referenced this issue Oct 4, 2023
Readme info for nvim-treesitter usage
gcr pushed a commit to gcr/difftastic-nim that referenced this issue Jan 31, 2024
supports more structures and many bug fixes

This PR brings support for more complex Nim structure, enabled by the parser size reduction effort done by earlier PRs.

However, as a result of this, generating the parser is now costlier at 7GiB of memory. The resulting parser is /slightly/ smaller at 118MiB.

New structures supported:

* Command call with full-fledged expression as arguments
* Full expression support in enum value declarations
* (var T, var U) within typedesc
* cast(raises: [])

Fixed bugs:

*  layout_empty not emitted for lower indentation levels
*  Block comments may mess up initial indentation determination
bernhard-herzog pushed a commit to bernhard-herzog/difftastic that referenced this issue May 2, 2024
Fix comments which start with non-alphanumerics
bernhard-herzog pushed a commit to bernhard-herzog/difftastic that referenced this issue May 2, 2024
I suspect this is what causing issues for multiple projects attempting to use this grammar:

- neurocyte/zat#1

- zed-industries/zed#7543 (comment)

Don't know why it wasn't static in the first place (in the original Haskell grammar),
but I looked at what other grammars do and none export any functions other than those used by Tree-sitter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant