#text-file #highlight #syntax #syntect #tree-sitter #parser

tft

Text file type list and detection similar to that of Neovim

3 unstable releases

0.1.1 Sep 23, 2023
0.1.0 Aug 3, 2023
0.0.0 Aug 3, 2023

#313 in Text editors

Download history 21/week @ 2024-03-13 29/week @ 2024-03-20 44/week @ 2024-03-27 26/week @ 2024-04-03 12/week @ 2024-04-10 8/week @ 2024-04-17 14/week @ 2024-04-24 11/week @ 2024-05-01 16/week @ 2024-05-08 18/week @ 2024-05-15 12/week @ 2024-05-22 19/week @ 2024-05-29 61/week @ 2024-06-05 36/week @ 2024-06-12 23/week @ 2024-06-19 24/week @ 2024-06-26

146 downloads per month
Used in 6 crates (3 directly)

GPL-3.0-only

185KB
3.5K SLoC

tft

Text file type list and detection similar to that of Neovim

Note: If viewing this file on GitHub or crates.io, some links might not be working. Go to the docs.rs page instead, which also additionally includes the Features section.

Overview

tft mainly provides the FileType enum and the detect and try_detect functions. Follow these links for more information.

Dependencies

~1.5–2.8MB
~58K SLoC