You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Text to be checked/linted is added to a lintreq. To determine whether text should be linted I check if it corresponds to an allowed highlight group using tree-sitter queries, a allow list based system:
For any tree-sitter subtree (parser:for_each_tree)
iter over highlights (hl_query:iter_captures)
add to lintreq if allowed hl_group
Some languages, such as latex, need text linted that is not highlighted. For this we need a deny list style operation.
change
Configuration must be language dependent
Instead of always running in allow list mode the event handler on_event should change to deny list mode depending on config
Text to be checked/linted is added to a
lintreq
. To determine whether text should be linted I check if it corresponds to an allowed highlight group using tree-sitter queries, a allow list based system:Some languages, such as latex, need text linted that is not highlighted. For this we need a deny list style operation.
change
Configuration must be language dependent
Instead of always running in allow list mode the event handler
on_event
should change to deny list mode depending on configlanguage dependent config
options:
deny list style on_event
split
lintreq builder
intoallow builder
anddeny builder
. Both still build into a lintreqThe text was updated successfully, but these errors were encountered: