Use kleingrep's regex engine instead of stdlib #1

Merged
Rockingcool merged 8 commits from useMyEngine into master 2025-04-24 21:20:41 -05:00
7 changed files with 28 additions and 13 deletions
Showing only changes of commit a1309af696 - Show all commits

View File

@@ -14,7 +14,11 @@
'\<(.*?)\>': BLUE
# Assignments and comparisons
# TODO: Add less than, greater than, not equal to, and struct pointer member access
'(?:\s|\b)(=|==|!=|<=|>=|\->)(\s|\b)' : CYAN
'(?:\s|\b)(=|==|!=|\<=|\>=|\->)(\s|\b)' : CYAN
# Built-in boolean values, modifiers
'\b(static|const|true|false)\b': DARKBLUE
# Keywords
'\b(if|else|while|do|for|return)\b': CYAN
'(\n|^)(#ifdef|#ifndef|#define|#include)\b': CYAN

View File

@@ -1,7 +1,7 @@
# Priority decreases going downward ie. If two regexes match the same piece of
# text, the one defined earlier will take precedence over the one defined later.
# Comments
'//.*': GRAY
'//[^\n]*': GRAY
'/\*[^*]*\*+(?:[^/*][^*]*\*+)*/': GRAY
# Numbers and special values
'\b\-?[0-9]*\b': MAGENTA