-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdBlock syntax support? #12629
Comments
VSCode uses textmate grammars. As far as I can tell, there are currently no tree-sitter grammars which would be a requirement for language support in Helix. |
oh :( Would this help? (even if just a little?) What about comment-tokens only? It's just "!", I can open a PR for it |
I was thinking about writing a grammar for this, but I came across a problem: How would Helix detect the adblock language? The language uses - language: Adblock Filter List
pattern: |-
(?x)\A
\[
(?<version>
(?:
[Aa]d[Bb]lock
(?:[ \t][Pp]lus)?
|
u[Bb]lock
(?:[ \t][Oo]rigin)?
|
[Aa]d[Gg]uard
)
(?:[ \t] \d+(?:\.\d+)*+)?
)
(?:
[ \t]?;[ \t]?
\g<version>
)*+
\] Helix doesn't support using regex to determine file type. |
Users would have to |
GH supports it:
https://github.com/github-linguist/linguist/blob/8e7ffb338d49c5c26808728844bf5e7243b334c2/lib/linguist/languages.yml#L230-L241
And it's used by big repos such as EL, AG, and uBO
Will the default (root)
languages.toml
support it?The text was updated successfully, but these errors were encountered: