[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: POC: customizable cc-mode keywords
From: |
Daniel Colascione |
Subject: |
Re: POC: customizable cc-mode keywords |
Date: |
Sat, 10 May 2014 16:13:50 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 05/01/2014 10:26 PM, Daniel Colascione wrote:
> cc-mode has trouble with parsing dialects of C that use the preprocessor
> heavily. Consider this example from the Linux kernel:
>
> static int perf_event_period(struct perf_event *event, u64 __user *arg)
>
> __user is defined to some GCC static analysis nonsense, but since
> cc-mode doesn't know that, we see __user fontified in
> font-lock-variable-name-face and *arg untouched. This example is fairly
> benign (if ugly), but there are other cases where variations in
> pre-processor C dialect confuse cc-mode in larger regions, leading to
> odd fontification and indentation.
>
> The patch below adds customizable options for additional C-family
> language "keywords".
Ping. CC Alan.
signature.asc
Description: OpenPGP digital signature
- POC: customizable cc-mode keywords, Daniel Colascione, 2014/05/02
- Re: POC: customizable cc-mode keywords,
Daniel Colascione <=
- Re: POC: customizable cc-mode keywords, Alan Mackenzie, 2014/05/11
- Re: POC: customizable cc-mode keywords, Daniel Colascione, 2014/05/11
- Re: POC: customizable cc-mode keywords, Alan Mackenzie, 2014/05/16
- Re: POC: customizable cc-mode keywords, Daniel Colascione, 2014/05/16
- Re: POC: customizable cc-mode keywords, Alan Mackenzie, 2014/05/18
- Re: POC: customizable cc-mode keywords, Daniel Colascione, 2014/05/18
- Re: POC: customizable cc-mode keywords, Stefan Monnier, 2014/05/18
- Re: POC: customizable cc-mode keywords, Alan Mackenzie, 2014/05/25