View Issue Details

IDProjectCategoryView StatusLast Update
0000602fileGeneralpublic2024-12-28 19:33
ReporterAnton Monroe Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.46 
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

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-12-28 19:33 Anton Monroe New Issue