#text-file #highlight #syntect #syntax #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

#277 in Text editors

Download history 5/week @ 2024-01-08 2/week @ 2024-02-05 4/week @ 2024-02-12 25/week @ 2024-02-19 17/week @ 2024-02-26 22/week @ 2024-03-04 27/week @ 2024-03-11 25/week @ 2024-03-18 22/week @ 2024-03-25 53/week @ 2024-04-01 12/week @ 2024-04-08 7/week @ 2024-04-15

98 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

~0.7–2.1MB
~41K SLoC