Ticket #4469: Jenkinsfile_syntax.patch

File Jenkinsfile_syntax.patch, 755 bytes (added by d_uragan, 18 months ago)

Possible patch

  • misc/syntax/Syntax.in

    From a8141be83336227b40f38b98df1736c16c2cab53 Mon Sep 17 00:00:00 2001
    From: dsilakov <dsilakov@gmail.com>
    Date: Thu, 25 May 2023 15:09:20 +0300
    Subject: [PATCH] Add syntax highlighting for Jenkinsfiles
    
    Jenkinsfiles follow Groovy syntax, treat them accordingly
    ---
     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 7ab53cdfc6..95bf6bdadb 100644
    a b include php.syntax 
    150150file ..\*\\.ij[xs]$ J\sFile 
    151151include j.syntax 
    152152 
    153 file ..\*\\.(?i:java?|groovy)$ Java\sProgram 
     153file ..\*\\.(?i:java?|groovy|Jenkinsfile)$ Java\sProgram 
    154154include java.syntax 
    155155 
    156156file ..\*\\.(properties|config)$ Java\sFile