View Issue Details

IDProjectCategoryView StatusLast Update
0000602fileGeneralpublic2025-01-30 20:38
ReporterAnton Monroe Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.46 
Fixed in VersionHEAD 
Summary0000602: Magdir/c-lang, detecting #define
DescriptionA C source file that has only "#define" is not detected as C source.
It looks like Magdir/c-lang only checks for #define if it follows an #ifdef or #ifndef
I suspect this:
    0 search/8192 define
    >0 regex \^#[[:space:]]*(if\|ifn)def
    >>&0 regex \^#[[:space:]]*define C source text
    !:mime text/x-c

was intended to be something like this:
    0 search/8192 define
    >0 regex \^#[[:space:]]*define C source text
    !:mime text/x-c

TagsNo tags attached.

Activities

christos

2025-01-30 20:38

manager   ~0004175

I changed it, but it could have been there because of false positives. We'll see.

Issue History

Date Modified Username Field Change
2024-12-28 19:33 Anton Monroe New Issue
2025-01-30 20:38 christos Assigned To => christos
2025-01-30 20:38 christos Status new => assigned
2025-01-30 20:38 christos Status assigned => resolved
2025-01-30 20:38 christos Resolution open => fixed
2025-01-30 20:38 christos Fixed in Version => HEAD
2025-01-30 20:38 christos Note Added: 0004175