Ticket #2323: 0001-match-makefile-syntax-towards-the-end.patch

File 0001-match-makefile-syntax-towards-the-end.patch, 1.1 KB (added by ossi, 4 years ago)
  • misc/syntax/Syntax.in

    From 8f5ce71fb53dbcafca1b01f9e59d8a35b574da7a Mon Sep 17 00:00:00 2001
    From: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
    Date: Fri, 9 Oct 2020 00:14:34 +0200
    Subject: [PATCH 5/5] match makefile syntax towards the end
    
    the pattern is very broad and would occasionally clash with non-
    makefiles, for example makefile.cpp.
    ---
     misc/syntax/Syntax.in | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/misc/syntax/Syntax.in b/misc/syntax/Syntax.in
    index 397bec473..7426c7ad3 100644
    a b include xml.syntax 
    6767file ..\*\\.(?i:tt)$ Template::Toolkit\sFile 
    6868include tt.syntax 
    6969 
    70 file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|..\*\\.mak|Kbuild)$ Makefile 
    71 include makefile.syntax 
    72  
    7370file (CMakeLists.txt|.\*.cmake)$ CMake 
    7471include cmake.syntax 
    7572 
    include cobol.syntax 
    307304file ..\*\\.kt$ Kotliin\sSource 
    308305include kotlin.syntax 
    309306 
     307file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|..\*\\.mak|Kbuild)$ Makefile 
     308include makefile.syntax 
     309 
    310310file .\* unknown 
    311311include unknown.syntax