tree-sitter-make
tree-sitter-make copied to clipboard
Hey the treesitter team have created a new org to umbrella grammars. Would you consider transferring this to there? No worries if not.
tree-sitter 0.20 generates both NodeJS & Rust bindings, which then makes it usable as a dependency of a rust project. Updating the node dependency then running `./node_modules/.bin/tree-sitter generate` generates the...
The following has a comment after a variable assignment: ```make var := sometext # comment ``` `InspectTree`:
I installed the "make" highlighter and I seem to be getting the following error: ``` Error in decoration provider treesitter/highlighter.win: Error executing lua: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:248: Query error at 9:4. Invalid node...
Please add Node.js package for this grammar like there exists for most other languages.
```make ifeq ($(OS_TYPE),linux-gnu) A := 1 else A := 2 endif all: @echo $(A) ``` ```python >>> tree.root_node.children[0].children[1].text b'A := 1' >>> tree.root_node.children[0].children[1] ``` `tree.root_node.children[0].children[1].type` should be `variable_assignment`.
Consider the [Makefile docs](https://www.gnu.org/software/make/manual/html_node/Call-Function.html) `$(call variable,param,param,…)` should be legitimate, right? If your `Makefile` looks like this: ```make # Makefile define logger echo $1 endef a: $(call logger, '(string_param_with_parentheses)') $(call logger,...
The Makefile fragment causing the highlighting error. ```Makefile COMMON_PACK_NAMES = preload splash common leaderboards ART_PACKS = $(COMMON_PACK_NAMES:=.pak) COMMON_ATLAS_NAMES = game menu shop wardrobe leaderboards COMMON_ATLASES = $(COMMON_ATLAS_NAMES:%=atlas_%.xml) ```
This prevents to use this repository in other repository with automated testing because the tests currently fail. test plan: npm test