From d1d4187eafccc20842cd8aca90c5d57edd6ab2ab Mon Sep 17 00:00:00 2001 From: jgmdev Date: Wed, 16 Feb 2022 05:57:28 -0400 Subject: language_php: properly set names to the multiple syntax definitions --- plugins/language_php.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/language_php.lua b/plugins/language_php.lua index 2cf74d2..fa1992a 100644 --- a/plugins/language_php.lua +++ b/plugins/language_php.lua @@ -12,7 +12,7 @@ require "plugins.language_js" -- define the core php syntax coloring syntax.add { - name = "PHP", + name = "PHP Source", files = { "%.phps$" }, headers = "^<%?php", comment = "//", @@ -149,6 +149,7 @@ syntax.add { -- allows html, css and js coloring on php files syntax.add { + name = "PHP", files = { "%.php$", "%.phtml" }, comment = "//", patterns = { -- cgit v1.2.3