frozolotl / tree-sitter-typst

A tree-sitter grammar for the typst typesetting language with a focus on correctness
European Union Public License 1.2
76 stars 3 forks source link

Move queries into typst dir #19

Closed TheZoq2 closed 6 months ago

TheZoq2 commented 6 months ago

As discussed in #2

frozolotl commented 6 months ago

Thanks for the PR!

I personally don't like the duplication of the query files. It seems reasonable to do one of two things:

  1. Remove the files queries/*.scm. This might break things on update, but I think that is okay.
  2. Symlink one file to the other. That should be backwards compatible and seems like the most prudent choice to me, provided nvim-treesitter does handle them correctly.

I prefer the second approach, but I would accept the first one as well. What do you think?

TheZoq2 commented 6 months ago

Oh oops, I meant to remove them but I guess git add * didn't do that. A symlink sounds good, though IIRC there are problems with symlinks on windows :thinking:

frozolotl commented 6 months ago

Oh oops, I meant to remove them but I guess git add * didn't do that. A symlink sounds good, though IIRC there are problems with symlinks on windows 🤔

In that case, deletion seems preferable.

frozolotl commented 6 months ago

Thanks!