helix-mods/helix-core
Michael Davis 17daf6ac0a
Change syntax for suffix file-types configurations (#4414)
The change in d801a6693c to search for
suffixes in `file-types` is too permissive: files like the tutor or
`*.txt` files are now mistakenly interpreted as R or perl,
respectively.

This change changes the syntax for specifying a file-types entry that
matches by suffix:

```toml
file-types = [{ suffix = ".git/config" }]
```

And changes the file-type detection to first search for any non-suffix
patterns and then search for suffixes only with the file-types entries
marked explicitly as suffixes.
2022-10-22 09:34:15 +09:00
..
src Change syntax for suffix file-types configurations (#4414) 2022-10-22 09:34:15 +09:00
tests Add extend-indented and stop-extend captures for indent queries. 2022-10-11 16:48:04 +09:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
Cargo.toml do not reparse unmodified injections (#4146) 2022-10-11 15:48:12 +09:00