# Revert "language: Fix slow Tree-sitter parsing" \(\#54524\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b38e8f17d863d3bc7a64d943ff5f5da9f83d5a8b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b38e8f17d863d3bc7a64d943ff5f5da9f83d5a8b

Requested commit: b38e8f17d863d3bc7a64d943ff5f5da9f83d5a8b

Commit: b38e8f17d863d3bc7a64d943ff5f5da9f83d5a8b

Tree: e6ba20ad42761c4ed16b1515296defa7649476c6

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Revert "language: Fix slow Tree-sitter parsing" (#54524)

It's currently not valid to limit the syntax highlighting cursor in this
way, because it prevents us from recognizing important patterns like
`(function_item name:(identifier) @function` if the function exceeds the
context length, which is common. We'll need to think harder about
whether there's a different solution the problem of slow queries in the
presence of large parse errors.

Reverts zed-industries/zed#52674
```

## Parents

- [8e4c6797238d9b2772a947e324bf340c256f86ea](https://git.cafe/gitcafe/zed/commit/8e4c6797238d9b2772a947e324bf340c256f86ea?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b38e8f17d863d3bc7a64d943ff5f5da9f83d5a8b?format=markdown)
