aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_php.lua
diff options
context:
space:
mode:
authorLuke aka SwissalpS <Luke@SwissalpS.ws>2020-06-18 17:38:19 +0200
committerGitHub <noreply@github.com>2020-06-18 17:38:19 +0200
commit912fb1b2f2539b25e8ea54ad8af4c16cda10001a (patch)
tree4365c7ec5b0d55349517e02ad15b118044cb011f /plugins/language_php.lua
parent408d6d0eb3a216e33755e206ca967e06ae7ac0c2 (diff)
downloadlite-xl-plugins-912fb1b2f2539b25e8ea54ad8af4c16cda10001a.tar.gz
lite-xl-plugins-912fb1b2f2539b25e8ea54ad8af4c16cda10001a.zip
detect more php files
classes and other php files often begin with an opening php-tag
Diffstat (limited to 'plugins/language_php.lua')
-rw-r--r--plugins/language_php.lua1
1 files changed, 1 insertions, 0 deletions
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" },