tree-sitter-langs icon indicating copy to clipboard operation
tree-sitter-langs copied to clipboard

Anyone having luck with the json grammar?

Open shipmints opened this issue 1 year ago • 5 comments
trafficstars

Not working for me. No indentation, for example. The bare Emacs json mode works fine, in contrast.

shipmints avatar Aug 20 '24 14:08 shipmints

Do you only have an issue with JSON files? Can you provide more information on what needs to be fixed? 🤔 It's working fine on my machine.

jcs090218 avatar Aug 20 '24 18:08 jcs090218

Only json files with treesitter, so far. C++, Python work fine. Perhaps you could share your json-ts-mode set up and I'll see if this is user error.

shipmints avatar Aug 20 '24 19:08 shipmints

This package is the external tree-sitter.el, and not the built-in treesit.el. 🤔 Are you sure you are using this package?

jcs090218 avatar Aug 20 '24 20:08 jcs090218

Hmm. I am on vanilla treesit. These grammars are working for me, though. Is this a spotty expectation? I'll have to hunt for another nicely packaged set of version-controlled treesitter grammars if these aren't universal.

shipmints avatar Aug 21 '24 12:08 shipmints

Still would be nice to know if the grammars are universal. The treesitter API seems universal, even if the Emacs wrapper isn't.

shipmints avatar Aug 29 '24 23:08 shipmints