From d0c48047839da58bfa4ad466cc8c59c6a9cd12ff Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 20 Feb 2014 23:05:34 +0900 Subject: Fix PHP generation script. This resolves bug 1946 --- kate/data/generate-php.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kate') diff --git a/kate/data/generate-php.pl b/kate/data/generate-php.pl index c6bb3a50c..6c885e95b 100644 --- a/kate/data/generate-php.pl +++ b/kate/data/generate-php.pl @@ -1,3 +1,5 @@ +#!/usr/bin/perl + # This perl script read stdin and write on stdout. It shall be an XML language file. # # * If the name of the language is 'HTML', then it creates the language 'PHP (HTML)' @@ -48,7 +50,7 @@ else $findphp = "\n\n\n"; -$file =~ s/]*)context="##(?!Alerts)([^"]+)"/]*)context="##(?!Alerts|Doxygen|Modelines)([^"]+)"/]*>)/$1\n/g; $file =~ s/(?=<\/contexts\s*>)/$findphp/; -- cgit v1.2.1