Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tree-sitter): remove slow html highlight patterns
Fixes Textualize#4152 by removing all `((element (start_tag (tag_name) @_tag)` patterns from the `html.scm` highlights query file. These patterns will cause a segfault on relatively large documents and even just one seems a massively expensive operation from some quick testing. All tests pass after removing these and I couldn't see they were actually used anywhere in syntax highlighting, but please correct me if I'm wrong!
- Loading branch information