dlvandenberg / tree-sitter-angular

Tree Sitter Grammar for Angular
MIT License
34 stars 9 forks source link

Fix binding property access #20

Closed emilycares closed 5 months ago

emilycares commented 5 months ago

This kind of access was not supported. I think I go it working. Sample:

obj.access['thing'].thing

Maybe there is a way to use the existing bracket_expression. But I was not able to. I have never modified a treesitter grammar before.

I wanted to try it out in neovim. But there seem to be more steps involved than i though.

- ERROR angular(highlights): .../share/nvim/runtime/lua/vim/treesitter/query.lua:259: 
  query: invalid node type at position 39 for language angular
  angular(highlights) is concatenated from the following files:
  | [ERROR]:".../nvim-treesitter/queries/angular/highlights.scm", 
   failed to load: .../share/nvim/runtime/lua/vim/treesitter/query.lua:259: 
   query: invalid node type at position 39 for language angular

What are the steps to get this working?

dlvandenberg commented 5 months ago

Thanks for your attempt to fix this. I will try it out.

dlvandenberg commented 5 months ago

Fixed by #23