tui-syntax 0.6.0

Tree-sitter based syntax highlighting for TUI applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! JSON language support using tree-sitter-json.

use super::Language;

/// Returns the JSON language configuration.
///
/// Uses the tree-sitter-json grammar for JSON syntax highlighting.
pub fn json() -> Language {
    Language {
        name: "json",
        ts_language: tree_sitter_json::LANGUAGE.into(),
        highlights_query: tree_sitter_json::HIGHLIGHTS_QUERY,
        injections_query: "",
        locals_query: "",
    }
}