[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two tiny tweaks to c.nanorc
From: |
Hussam al-Homsi |
Subject: |
Re: Two tiny tweaks to c.nanorc |
Date: |
Fri, 4 Sep 2020 09:51:55 -0400 |
>> # Preprocessor directives.
>> color brightcyan
>> start="^[[:space:]]*#[[:space:]]*(if(n?def)?|elif|warning|error|pragma)\>"
>> end="(\`|[^\\])$"
>> -color brightcyan
>> "^[[:space:]]*#[[:space:]]*(define|else|endif|include(_next)?|undef)\>"
>> +color brightcyan
>> "^[[:space:]]*#[[:space:]]*((define|else|endif|include(_next)?|undef)\>)?"
> This is not precise enough. A stray "#" in the leading whitespace of a line
> of text would get colored as a directive, which is not right. Instead of
> ")?" at the end I think it should be "|$)". Do you agree?
Yes. I think that's the way it should be.
Hussam