You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read all the tree-sitter docs if it relates to using the parser
I have searched the existing issues
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
tree-sitter 0.21.0
Describe the bug
I've been using this grammar for a bit to teach myself a bit about tree-sitter and to eventually create a (possibly) better GLSL major-mode for Emacs (glsl-mode). That said, I think I encountered a minor error in the current grammar as an array of SSBO buffers with an unbounded field (see below) seems to generate errors:
Not entirely sure what parse tree I should be expecting, it looks mostly correct
already, but I guess the ERROR expressions should be replaced with something
more appropriate, perhaps:
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)tree-sitter 0.21.0
Describe the bug
I've been using this grammar for a bit to teach myself a bit about tree-sitter and to eventually create a (possibly) better GLSL major-mode for Emacs (glsl-mode). That said, I think I encountered a minor error in the current grammar as an array of SSBO buffers with an unbounded field (see below) seems to generate errors:
Changing the
#define
to a constant seems to help, but there is still errors in the output parse-tree, as seen below:Steps To Reproduce/Bad Parse Tree
Parse tree included here:
Expected Behavior/Parse Tree
Not entirely sure what parse tree I should be expecting, it looks mostly correct
already, but I guess the ERROR expressions should be replaced with something
more appropriate, perhaps:
Which seems similar to a regular array declaration.
Repro
Below is a shader that can reproduce this error with the current grammar:
The text was updated successfully, but these errors were encountered: