Comments (2)
Thank you for this! It is unfortunate that the query has to be so complicated, though. Additionally, I think it would need to support comments before the 'use strict'
as well as having the directive highlighted in a function_expression
, something like
const a = function() {
'use strict'
}
at which point it may not be worth the effort. My guess is it is pretty uncommon to just have a random string be 'use strict'
?
from nvim-treesitter.
Hmm, its not too hard to fix both of those, I did it in a couple of minutes (you can find the updated queries here) but I agree that it might be more trouble than its worth.
At the very least I'd like to see it not highlighted when it isnt an expression (e.g. when its passed as an argument or if its a variable), this dosent fix highlighting the expression in invalid context but its a much simpler query
from nvim-treesitter.
Related Issues (20)
- HTML file causes neovim segv HOT 6
- Links and images are underlined with dashes in markdown HOT 22
- latest update to vimdoc error HOT 7
- MyST directives with colon fence notation HOT 2
- [Rust] Ability to fold scopes explicitely defined by curly braces
- Highlighs in .dart goes crazy sometimes HOT 2
- undefined symbol: static_assert for cpp HOT 1
- installed parsers can fail randomly with "uv_dlopen: no error" HOT 23
- Segmentation fault on startup (bc. nvim_treesitter not found in runtime path?) HOT 4
- Uclosed parentheses cause incorrect indentation level in python HOT 2
- Error while installing any parser HOT 3
- Latex `@nospell` HOT 1
- lua: add indentation on next line without end
- Error in Treesitter Decoration Provider When Running `:help` in Neovim HOT 1
- Python method/attribute that shares a name with a builtin type is highlighted as a `@type.builtin.python` HOT 3
- Problems with Tsserver and HTML HOT 1
- Long paragraph leads to breakdown of highlight. HOT 9
- Long paragraph leads to failure of markdown highlight. HOT 4
- Healthcheck Fail: Query error at 2:4. Invalid node type "delimiter" HOT 1
- Error on Health Check: "errors found in the query, try to run :TSUpdate {lang}" HOT 3
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.