#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

#475 in Text editors

27 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.6–2MB
~40K SLoC