Improve C analyse_text

Issue #1148 resolved
Former user created an issue

This code snippet

#ifndef __foo__
#define __foo__

typedef struct {
} SomeStruct;


is recognized as Objective C by get_lexer_for_filename("foo.h", code) but should be recognized as C instead. The C analyse_text function could be extended to look for #ifndef to cover this case.

Comments (3)

  1. Log in to comment