Comments (7)
Something like
((foo) @definition.function
(set! "definition.scope" "parent")
?
from nvim-treesitter.
@theHamsta Is the example here a function that is called within the function itself?
function iterate() {
// to stuff
return iterate();
}
from nvim-treesitter.
@definition
should be valid for their scope. So the definition of function parameters is valid for the current function. However, the function name is also defined in that scope but it can be used in the parent scope.
from nvim-treesitter.
@theHamsta Good point. I'll take a look
from nvim-treesitter.
Maybe we can just have a directive stating that this definition is valid :
global
: globalyparent
: in the parent scope too
from nvim-treesitter.
Do you mean a tag like @scope.parent
or a directive like ((function)(parent-scope!))
from nvim-treesitter.
@theHamsta I like that. That could work.
from nvim-treesitter.
Related Issues (20)
- Angular Inline Template HTML highlighting. HOT 2
- Python builtin @staticmethod has different highlighting than @classmethod and @property HOT 1
- Support # style comments for injected langs in nix files HOT 1
- `markdown_inline` doesn't show INI fenced code blocks HOT 26
- Latex weird highlighting HOT 7
- Treesitter error in help file HOT 13
- Weird LaTeX highlighting around parentheses, brackets, and braces HOT 1
- Can't install parsers on Windows HOT 4
- Unable to install hyprlang parser HOT 2
- query: invalid node type at position HOT 1
- JS/TS/ECMA css`<template>` injections not highlighting HOT 2
- query.lua:248: Query error at 58:2. Invalid node type "modeline": HOT 1
- CPP namespace indentation not counted HOT 11
- Solidity Highlighting broken HOT 1
- nvim-treesitter[c]: Failed to execute the following command HOT 2
- Disable injections for large files HOT 5
- Python incorrectly indents brackets HOT 4
- Python Tree-sitter @spell highlights string prefixes HOT 2
- stack corruption detected (-fstack-protector) HOT 1
- Insuficient Capture Groups for keywords. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-treesitter.