aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrxi <rxi@users.noreply.github.com>2020-06-07 08:22:58 +0100
committerGitHub <noreply@github.com>2020-06-07 08:22:58 +0100
commit71f6766dc0566968a53ced4a34cf55702819050e (patch)
treec78a5841f9e3eb21eddb232828b1c0a55dd92093
parent47e25df87d1fd4b132ec554ffb1de70c2aba4c29 (diff)
parentcb35b86cd83e4529eb4a32efd8caa8419ee4965b (diff)
downloadlite-xl-plugins-71f6766dc0566968a53ced4a34cf55702819050e.tar.gz
lite-xl-plugins-71f6766dc0566968a53ced4a34cf55702819050e.zip
Merge pull request #52 from esprimo/hashttag-php-one-line-comment
Add support for # as one-line comment for PHP
-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 55597d6..025077a 100644
--- a/plugins/language_php.lua
+++ b/plugins/language_php.lua
@@ -5,6 +5,7 @@ syntax.add {
comment = "//",
patterns = {
{ pattern = "//.-\n", type = "comment" },
+ { pattern = "#.-\n", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
-- I dont know why the '//' are needed but I leave it here for now
{ pattern = { '"', '"', '\\' }, type = "string" },