This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | |
| "name": "C3", | |
| "patterns": [ | |
| { "include": "#keywords" }, | |
| { "include": "#comments" }, | |
| { "include": "#strings" }, | |
| { "include": "#numbers" }, | |
| { "include": "#types" }, | |
| { "include": "#support" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::{collections::VecDeque}; | |
| use lazy_static::lazy_static; | |
| use regex::Regex; | |
| use crate::render::{BLUE, Color, RED, WHITE, GREEN}; | |
| pub type LogItemValue = (String, Color); | |
| lazy_static! { | |
| static ref PATTERN_WORD: Regex = Regex::new(r"[a-zA-Z0-9,!?\.'][a-zA-Z0-9,!?\.'\s]+").unwrap(); |