diff options
author | Luke aka SwissalpS <Luke@SwissalpS.ws> | 2020-06-18 17:38:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 17:38:19 +0200 |
commit | 912fb1b2f2539b25e8ea54ad8af4c16cda10001a (patch) | |
tree | 4365c7ec5b0d55349517e02ad15b118044cb011f /plugins | |
parent | 408d6d0eb3a216e33755e206ca967e06ae7ac0c2 (diff) | |
download | lite-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')
-rw-r--r-- | plugins/language_php.lua | 1 |
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" }, |