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
This isn't an issue with existing modes, since they typically already include font-lock highlighting, but while writing my own mode backed by tree-sitter, I found that it was necessary to set font-lock-defaults to a dummy value (I eventually landed on '(('t))) for tree-sitter-hl-mode to perform highlighting.
Ideally, if font-lock-defaults was unset, tree-sitter-hl-mode could just set this value when enabled.
The text was updated successfully, but these errors were encountered:
This isn't an issue with existing modes, since they typically already include font-lock highlighting, but while writing my own mode backed by tree-sitter, I found that it was necessary to set
font-lock-defaults
to a dummy value (I eventually landed on'(('t))
) for tree-sitter-hl-mode to perform highlighting.Ideally, if
font-lock-defaults
was unset, tree-sitter-hl-mode could just set this value when enabled.The text was updated successfully, but these errors were encountered: