Ticket #4098: 0001-Add-the-.ino-extension-to-the-list-of-extensions-rec.patch

File 0001-Add-the-.ino-extension-to-the-list-of-extensions-rec.patch, 982 bytes (added by purdeaandrei, 4 years ago)

patch

  • misc/syntax/Syntax.in

    From b47c85c2c6eb35ef2c5c631bc6fddf4b432a1ec8 Mon Sep 17 00:00:00 2001
    From: Purdea Andrei <andrei@purdea.ro>
    Date: Sun, 21 Jun 2020 05:17:39 +0300
    Subject: [PATCH] Add the .ino extension to the list of extensions recognized
     by the c++ syntax highlighter.
    
    .ino is used by the Arduino IDE, and a number of other IDEs, and it's effectively the same
    thing as a c++ source file, but with some added magic, such as auto-generated function prototypes.
    ---
     misc/syntax/Syntax.in | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/misc/syntax/Syntax.in b/misc/syntax/Syntax.in
    index 724447bef..397bec473 100644
    a b include texinfo.syntax 
    9797file ..\*\\.c$ C\sProgram 
    9898include c.syntax 
    9999 
    100 file ..\*\\.([hC]|(?i:cxx|cc|cpp|hpp|hxx|hh)|[Hh]\\.in)$ C/C\+\+\sProgram 
     100file ..\*\\.([hC]|(?i:cxx|cc|cpp|hpp|hxx|hh|ino)|[Hh]\\.in)$ C/C\+\+\sProgram 
    101101include cxx.syntax 
    102102 
    103103file ..\*\\.d$ D\sProgram