emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter
https://emacs-tree-sitter.github.io
MIT License
827 stars 74 forks source link

c++ struct array member identifier not highlighted #208

Closed ville-h closed 2 years ago

ville-h commented 2 years ago

c++ struct array member identifier not highlighted: emacs_tree_sitter_struct_array_member_highlight_bug

int xs[2]; // <-- identifier is highlighted

struct aa {
    int x;  // <-- identifier is highlighted
    int xs[2]; // <-- identifier does not get highlighted
};

auto main() -> int {
    int xs[2]; // <-- identifier is highlighted
    (void)xs;
    return 0;
}

Feel free to pass it on to whatever project is responsible in case this is the wrong one. It's rather opaque to an outsider which project is responsible for what functionality.

ubolonton commented 2 years ago

Here are the steps that can help troubleshooting this:

To determine where the unexpected behavior lies:

Feel free to pass it on to whatever project is responsible in case this is the wrong one. It's rather opaque to an outsider which project is responsible for what functionality.

Please study the docs. If it's still not clear after that, please open a discussion on https://github.com/emacs-tree-sitter/elisp-tree-sitter/discussions.