Use kleingrep's regex engine instead of stdlib #1
@@ -14,7 +14,11 @@
|
|||||||
'\<(.*?)\>': BLUE
|
'\<(.*?)\>': BLUE
|
||||||
# Assignments and comparisons
|
# Assignments and comparisons
|
||||||
# TODO: Add less than, greater than, not equal to, and struct pointer member access
|
# 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
|
# Keywords
|
||||||
'\b(if|else|while|do|for|return)\b': CYAN
|
'\b(if|else|while|do|for|return)\b': CYAN
|
||||||
'(\n|^)(#ifdef|#ifndef|#define|#include)\b': CYAN
|
'(\n|^)(#ifdef|#ifndef|#define|#include)\b': CYAN
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# Priority decreases going downward ie. If two regexes match the same piece of
|
# 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.
|
# text, the one defined earlier will take precedence over the one defined later.
|
||||||
# Comments
|
# Comments
|
||||||
'//.*': GRAY
|
'//[^\n]*': GRAY
|
||||||
'/\*[^*]*\*+(?:[^/*][^*]*\*+)*/': GRAY
|
'/\*[^*]*\*+(?:[^/*][^*]*\*+)*/': GRAY
|
||||||
# Numbers and special values
|
# Numbers and special values
|
||||||
'\b\-?[0-9]*\b': MAGENTA
|
'\b\-?[0-9]*\b': MAGENTA
|
||||||
|
Reference in New Issue
Block a user