aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/language_php.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/language_php.lua b/plugins/language_php.lua
index 8b3371a..bea6b85 100644
--- a/plugins/language_php.lua
+++ b/plugins/language_php.lua
@@ -79,10 +79,10 @@ local inline_variables = {
{ pattern = "{()%$[%a_][%w_]*()}",
type = { "keyword", "keyword2", "keyword" }
},
- { pattern = "%$[%a_][%w_]*()%[()%w*()%]",
+ { pattern = "%$[%a_][%w_]*()%[()[%w_]*()%]",
type = { "keyword2", "keyword", "string", "keyword" }
},
- { pattern = "%$[%a_][%w_]*()%->()%w+",
+ { pattern = "%$[%a_][%w_]*()%->()%a[%w_]*",
type = { "keyword2", "keyword", "symbol" }
},
{ pattern = "%$[%a_][%w_]*", type = "keyword2" },
@@ -335,8 +335,7 @@ end
syntax.add {
name = "PHP",
files = { "%.php$", "%.phtml" },
- comment = "//",
- block_comment = {"/*", "*/"},
+ block_comment = { "<!--", "-->" },
patterns = {
{
regex = {