From 912fb1b2f2539b25e8ea54ad8af4c16cda10001a Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Thu, 18 Jun 2020 17:38:19 +0200 Subject: detect more php files classes and other php files often begin with an opening php-tag --- plugins/language_php.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/language_php.lua') diff --git a/plugins/language_php.lua b/plugins/language_php.lua index 025077a..d6ed516 100644 --- a/plugins/language_php.lua +++ b/plugins/language_php.lua @@ -2,6 +2,7 @@ local syntax = require "core.syntax" syntax.add { files = { "%.php$", "%.phtml" }, + headers = "^<%?php", comment = "//", patterns = { { pattern = "//.-\n", type = "comment" }, -- cgit v1.2.3