Skip to main content

is_language_supported

Function is_language_supported 

Source
pub fn is_language_supported(lang: &str) -> bool
Expand description

Returns true if tree-sitter highlighting is available for lang.

This checks both that the corresponding syntax-* feature is enabled and that the language string is recognised.