Comments (4)
js land makes everything harder doesn't it x)
from nvim-treesitter.
Maybe this would be better served as a separate issue, but for the use case described above, would it instead be possible to define a rule to exclude a specific chunk of a file from treesitter highlighting and fall back to Neovim highlighting? I also use styled-components (and the nvim plugin for it), and it would be awesome if there was something like:
(call_expression
left: (member_expression (identifier #eq? 'styled')
right: (template_string @neovim_fallback_highlight))
from nvim-treesitter.
this is a completely different issue indeed, and this is on the roadmap and i think it should be first addressed upstream.
from nvim-treesitter.
I guess that this would be really hard too.
from nvim-treesitter.
Related Issues (20)
- neovim freezes if ampersand on string in typescript files HOT 2
- python: arguments in Callable not highlighted as types HOT 1
- tree-sitter-disassembly issue HOT 5
- Consider adding a highlight capture for struct/enum/union keywords HOT 13
- [Question]: How to disable conceal highlight?
- E5108: Error executing lua ...nvim/lazy/nvim-treesitter/lua/nvim-treesitter/locals.lua:58: attempt to index field 'local' (a nil value) HOT 3
- nvim_treesitter#indent() should respect `breakindent` settings HOT 1
- conceal HOT 9
- Misleading capture names for type qualifiers and lifetimes HOT 4
- Markdown missing header mark highlights HOT 5
- Inconsitent highlighting between instances
- Error while highlighting markdown with code fences after update. HOT 4
- feat: add gularen parser HOT 1
- Delay actual highlight to make buffer open instantly HOT 2
- Typescript parser cannot be installed HOT 2
- `///` comments are not parsed as doxygen HOT 5
- Add fold text function as well as foldexpr function HOT 1
- My Custom Highlight Change Due To Update HOT 1
- Error detected while processing BufReadPost Autocommands for "*": HOT 4
- My Custom Highlight Change Due To Update HOT 2
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.