Added regex match for comparison operators

master
Aadhavan Srinivasan 2 months ago
parent 025ec775ca
commit 3678dc5161

@ -12,7 +12,7 @@
"'(.)'": 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
# Keywords # Keywords
'\b(if|else|while|do|for|return)\b': CYAN '\b(if|else|while|do|for|return)\b': CYAN
'^(#ifdef|#ifndef|#define|#include)\b': CYAN '^(#ifdef|#ifndef|#define|#include)\b': CYAN

Loading…
Cancel
Save