Just fork this tree sitter grammar and add your custom tag, they said. It’ll be fun they said.

Fast forward: diving into C++ code to debug failing tests to find a bug in the codebase where a value from a buffer in a custom vector class was being cast to an enum without taking its absolute value causing end tag comparisons for custom HTML tags to fail with -N != N when comparing the tag type.

In short, *sigh!* :)

(But also, yay: I think I have a functional tree sitter grammar for NodeKit now!)

Also, the last time I touched C/C++ code was likely when I was 13. And I wouldn’t mind if I never had to again.

*bleh!* Feel like I need a shower :)

Show thread

@petrisch There are but the bug was in the c code, not the bindings or the JavaScript grammar.

Follow

@aral ah i see, so you not only have a grammer for nodekit, but also made treesitter better i guess ;-)

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml