Skip to content

Instantly share code, notes, and snippets.

View louiidev's full-sized avatar
🎯

loui louiidev

🎯
  • Melbourne, Australia
View GitHub Profile
@louiidev
louiidev / c3.tmLanguage.json
Created August 2, 2024 01:34
c3 vscode syntax highlighting
{
"$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" },
@louiidev
louiidev / logging.rs
Last active July 30, 2021 02:23
A simple message log parser - To display Text with certain colors
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();