| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
| |
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
Problem: Tracking parser revision in lockfile and allowing override
through the parsers module complicates the code. In addition, only
revision changes are handled robustly, not changes to other installation
info.
Solution: Track parser revision in the parsers module directly. Reload
parser table on every install or update call. Support modifying parser
table in a `User TSUpdate` autocommand.
|
| |
|
|
|
|
| |
(+ add Check to mkDerivation bash matches)
(+ add Check to mkDerivation bash matches)
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In Prometheus, label values are treated as strings when used with the
`=` and `!=` operators, and as regular expressions when used with the
`=~` and `!~` operators.
Injecting and then highlighting all label values as regex leads to a
situation where entirely valid **string** label values containing regex
special characters are mistakenly parsed and highlighted as regex. This
results in syntax errors, causing labels to be highlighted incorrectly.
For example, in `foo{bar=~"[a-z]{1,3}"}`, `{` and `}` are regex special
characters, so regex highlighting is expected. However, in
`foo{path="/foo/{id}"}`, `{` and `}` are just part of the string and
have no special meaning, so the whole value should be highlighted as a
string.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
I think these have been broken since the query parser update. Basically
the inner node for the string content was preventing injections because
include-children was not set.
|
| | |
|
| |
|
|
|
|
|
| |
Interpolations (`{{valid js code}}`) and directive attributes
(`<element :directive="valid js code"`) can also be typescript code,
hence we can inject typescript instead of javascript here and still
be ok with highlights (bar some syntax differences between ts and js)
|
| | |
|
| | |
|
| |
|
|
| |
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
|
| |
|
|
|
|
|
| |
* feat(vue): add tsx/jsx injection queries
- add a test
- style: format vue/injections.scm
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Group queries to reduce duplicate injection tree
use only regex
|
| |
|
|
|
|
|
| |
* tests(vue, svelte): strengthen tests
* fix(html, vue, svelte): fix wrong test format
* allow negative assertions in injection tests
|
| |
|
|
|
|
| |
These injection queries are defined already in html_tags, remove them
Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
|
| |
|
|
|
|
|
| |
Update html_tags injections so that html/vue/svelte parsers can use
it without having a script/style tag being captured twice
Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
|
| | |
|
| | |
|
| | |
|
| |
|