summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-04-10 16:05:56 +0300
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2024-05-18 08:14:22 +0000
commitb1fd9e80b387dafd21b9823b64601e58d34e27c9 (patch)
treef88a701e5dfdc713f6f5c67f26b46da4e9a6d998
parent43e38f2c0a00cdc052660fab01d32df2c7dc24b0 (diff)
downloadtdelibs-b1fd9e80b387dafd21b9823b64601e58d34e27c9.tar.gz
tdelibs-b1fd9e80b387dafd21b9823b64601e58d34e27c9.zip
Kate syntax: allow PHP heredoc closing identifiers to be idented
It is allowed syntax since PHP version 7.3.0. See https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
-rw-r--r--kate/data/php.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/kate/data/php.xml b/kate/data/php.xml
index 3abd5e26d..fc963a30a 100644
--- a/kate/data/php.xml
+++ b/kate/data/php.xml
@@ -5542,27 +5542,27 @@ Changes:
<DetectChar attribute="String" context="#pop" char="'" />
</context>
<context name="htmlheredoc" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="Backslash Code" context="#pop" String="^%1;?$" dynamic="true" endRegion="Heredoc" />
+ <RegExpr attribute="Backslash Code" context="#pop" String="^[\s]*%1;?$" dynamic="true" endRegion="Heredoc" />
<IncludeRules context="commonheredoc" />
<IncludeRules context="##HTML" />
</context>
<context name="cssheredoc" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="Backslash Code" context="#pop" String="^%1;?$" dynamic="true" endRegion="Heredoc" />
+ <RegExpr attribute="Backslash Code" context="#pop" String="^[\s]*%1;?$" dynamic="true" endRegion="Heredoc" />
<IncludeRules context="commonheredoc" />
<IncludeRules context="##CSS" />
</context>
<context name="mysqlheredoc" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="Backslash Code" context="#pop" String="^%1;?$" dynamic="true" endRegion="Heredoc" />
+ <RegExpr attribute="Backslash Code" context="#pop" String="^[\s]*%1;?$" dynamic="true" endRegion="Heredoc" />
<IncludeRules context="commonheredoc" />
<IncludeRules context="##SQL (MySQL)" />
</context>
<context name="javascriptheredoc" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="Backslash Code" context="#pop" String="^%1;?$" dynamic="true" endRegion="Heredoc" />
+ <RegExpr attribute="Backslash Code" context="#pop" String="^[\s]*%1;?$" dynamic="true" endRegion="Heredoc" />
<IncludeRules context="commonheredoc" />
<IncludeRules context="Normal##JavaScript" />
</context>
<context name="heredoc" attribute="String" lineEndContext="#stay" dynamic="true">
- <RegExpr attribute="Backslash Code" context="#pop" String="^%1;?$" dynamic="true" endRegion="Heredoc" />
+ <RegExpr attribute="Backslash Code" context="#pop" String="^[\s]*%1;?$" dynamic="true" endRegion="Heredoc" />
<IncludeRules context="commonheredoc" />
</context>
<context name="commonheredoc" attribute="String" lineEndContext="#stay">