From 50d9126f2b60cbc774cc2226ea9496b73bc8aa4d Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Mon, 2 Sep 2024 23:18:56 -0400 Subject: [PATCH] Updated config file to recognize include headers --- config/c.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/c.conf b/config/c.conf index dc29867..eba8746 100644 --- a/config/c.conf +++ b/config/c.conf @@ -10,11 +10,13 @@ # Strings in double quotes and single quotes '"(.*?)"': BLUE "'(.)'": BLUE +# Text inside angle-brackets (used in 'include' statements) +'\<(.*?)\>': BLUE # Assignments and comparisons # TODO: Add less than, greater than, not equal to, and struct pointer member access '(?:\s|\b)(=|==|!=|<=|>=|\->)(\s|\b)' : CYAN # Keywords '\b(if|else|while|do|for|return)\b': CYAN -'^(#ifdef|#ifndef|#define|#include)\b': CYAN +'(\n|^)(#ifdef|#ifndef|#define|#include)\b': CYAN # Data Types '\b(int|char|float|double|void|long|short|unsigned|signed|bool)\b': YELLOW