# WIP: Search language injections also by file extension · gitcafe/zed

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

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

Visibility: public

Requested revision: cb610f37f2dd0f6d449b1aa076e83a8fae808828

Requested commit: cb610f37f2dd0f6d449b1aa076e83a8fae808828

Commit: cb610f37f2dd0f6d449b1aa076e83a8fae808828

Tree: 92b170bd859b4153091c3bcc9c55c838dae0a44d

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
WIP: Search language injections also by file extension

There are still a few things left:

1. Add test to verify we can successfully locate a language by its extension
2. Add test to reproduce bug where changing the fenced code block language
   won't reparse the block with the new language
3. Reparse injections for which we couldn't find a language when the language
   registry changes.
4. Check why the markdown grammar considers the trailing triple backtick as
   `(code_block_content)`, as opposed to being part of the outer markdown.

```

## Parents

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

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