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
//! SQL language support using tree-sitter-sequel.

use super::Language;

/// Returns the SQL language configuration.
///
/// Uses the tree-sitter-sequel grammar which supports PostgreSQL syntax.
pub fn sql() -> Language {
    Language {
        name: "sql",
        ts_language: tree_sitter_sequel::LANGUAGE.into(),
        highlights_query: tree_sitter_sequel::HIGHLIGHTS_QUERY,
        injections_query: "",
        locals_query: "",
    }
}