highlighting.rs - icy_draw - icy_draw is the successor to mystic draw. fork / mirror
 (HTM) git clone https://git.drkhsh.at/icy_draw.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       highlighting.rs (1138B)
       ---
            1 use super::Syntax;
            2 use std::collections::BTreeSet;
            3 
            4 #[must_use]
            5 pub fn lua() -> Syntax {
            6     Syntax {
            7         language: "Lua",
            8         case_sensitive: true,
            9         comment: "--",
           10         hyperlinks: BTreeSet::from([""]),
           11         comment_multiline: ["--[[", "]]"],
           12         keywords: BTreeSet::from([
           13             "and", "break", "do", "else", "elseif", "end", "false", "for", "function", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then",
           14             "true", "until", "while",
           15         ]),
           16         types: BTreeSet::from(["nil", "boolean", "number", "string", "nil", "function", "userdata", "thread", "table"]),
           17         special: BTreeSet::from([
           18             "new_buffer",
           19             "load_buffer",
           20             "next_frame",
           21             "fg_rgb",
           22             "bg_rgb",
           23             "set_char",
           24             "get_char",
           25             "set_fg",
           26             "get_fg",
           27             "set_bg",
           28             "get_bg",
           29             "print",
           30             "gotoxy",
           31             "set_layer_position",
           32             "get_layer_position",
           33             "set_layer_visible",
           34             "get_layer_visible",
           35             "clear",
           36         ]),
           37     }
           38 }