aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrxi <rxi@users.noreply.github.com>2020-06-18 16:41:18 +0100
committerGitHub <noreply@github.com>2020-06-18 16:41:18 +0100
commit57d48b55ed23d477b73110fdea8e98769a98a451 (patch)
tree4365c7ec5b0d55349517e02ad15b118044cb011f
parent408d6d0eb3a216e33755e206ca967e06ae7ac0c2 (diff)
parent912fb1b2f2539b25e8ea54ad8af4c16cda10001a (diff)
downloadlite-xl-plugins-57d48b55ed23d477b73110fdea8e98769a98a451.tar.gz
lite-xl-plugins-57d48b55ed23d477b73110fdea8e98769a98a451.zip
Merge pull request #61 from SwissalpS/patch-1
detect more php files
-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" },