Comments (6)
who knows, it's closed source, you could use semshi
from tree-sitter-python.
Locals can accomplish this, but you're likely looking for semantic highlighting anyways which an LSP provides
from tree-sitter-python.
Oh, I think you might be right. Would this then fall under the LSP? It might be that pyright doesn't provide that semantic group of parameter reference for highlighting and the Rust Analyzer does. Or maybe I just don't know how to get it to work.
from tree-sitter-python.
pyright doesn't provide semantic tokens
from tree-sitter-python.
I see. So how does Pylance get this to work under the hood? I wouldn't abandon Neovim or TreeSitter just for this one feature, but semantic highlighting sure makes it easier to read other languages. I just wish I had a solution for Python. Anyways, thank you for all your work on this.
from tree-sitter-python.
Thanks, I'll look into it.
from tree-sitter-python.
Related Issues (20)
- Parsing f-strings with unpackings
- Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible type!" HOT 3
- Migrate scanner to C HOT 1
- Deadlock/memory leak/crash when parsing a specific file HOT 8
- Not working on Windows with latest nvim-treesitter version HOT 1
- Expose real string quotes in a tree to don't mislead HOT 3
- Unable to parse match statements HOT 1
- Dedent regression in valid ternary expression in f-string
- Parsing python code failed with, ValueError: Parsing Failed. HOT 2
- `Error during compilation: cannot execute ‘cc1plus’: execvp: No such file or directory` HOT 2
- Missing git tag for v0.20.2 HOT 2
- Two nodes with kind "lambda" in 0.20.2 HOT 1
- Parsing error in while loop HOT 3
- Cannot compile due to call to undeclared function 'static_assert' HOT 7
- Comment parsing HOT 2
- 3.12 "`type`" soft keyword (PEP 0695) HOT 1
- Extra indent when using an open bracket/parenthesis in string literal HOT 1
- Helping injected languages parse docstrings HOT 1
- Trailing comma in Annotated causes an error
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 tree-sitter-python.