summaryrefslogtreecommitdiffstats
path: root/kate/data/perl.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/perl.xml')
-rw-r--r--kate/data/perl.xml20
1 files changed, 11 insertions, 9 deletions
diff --git a/kate/data/perl.xml b/kate/data/perl.xml
index 71b04ad9f..b92b52dff 100644
--- a/kate/data/perl.xml
+++ b/kate/data/perl.xml
@@ -39,7 +39,7 @@
Enhance tr/// and y/// support.
-->
-<language name="Perl" version="1.25" kateversion="2.4" section="Scripts" extensions="*.pl;*.pm" mimetype="application/x-perl;text/x-perl" author="Anders Lund (anders@alweb.dk)" license="LGPL">
+<language name="Perl" version="1.26" kateversion="2.4" section="Scripts" extensions="*.pl;*.pm" mimetype="application/x-perl;text/x-perl" author="Anders Lund (anders@alweb.dk)" license="LGPL">
<highlighting>
<list name="keywords">
<item> if </item>
@@ -56,18 +56,18 @@
<item> break </item>
<item> continue </item>
<item> return </item>
- <item> use </item>
- <item> no </item>
- <item> require </item>
<item> my </item>
<item> our </item>
<item> local </item>
+ <item> state </item>
<item> BEGIN </item>
<item> END </item>
- <item>require</item>
<item> package </item>
<item> sub </item>
<item> do </item>
+ <item> given </item>
+ <item> when </item>
+ <item> default </item>
<item> __END__ </item>
<item> __DATA__ </item>
<item> __FILE__ </item>
@@ -221,6 +221,7 @@
<item>msgget</item>
<item>msgrcv</item>
<item>msgsnd</item>
+ <item>no</item>
<item>oct</item>
<item>open</item>
<item>opendir</item>
@@ -244,6 +245,7 @@
<item>redo</item>
<item>ref</item>
<item>rename</item>
+ <item>require</item>
<item>reset</item>
<item>return</item>
<item>reverse</item>
@@ -307,6 +309,7 @@
<item>unpack</item>
<item>unshift</item>
<item>untie</item>
+ <item>use</item>
<item>utime</item>
<item>values</item>
<item>vec</item>
@@ -366,7 +369,7 @@
<RegExpr attribute="Normal Text" context="#stay" String="\s*\}\s*/{1,2}" endRegion="Block"/>
<RegExpr attribute="Normal Text" context="#stay" String="\s*[)\]]\s*/{1,2}" />
-
+
<RegExpr attribute="Function" context="sub_name_def" String="\w+::" />
<RegExpr attribute="Normal Text" context="#stay" String="\w+[=]" />
@@ -765,9 +768,8 @@
</context>
<context name="slash_safe_escape" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
- <DetectSpaces />
- <RegExpr attribute="Normal Text" context="#pop" String="\}\s*/{1,2}" endRegion="Block"/>
- <RegExpr attribute="Normal Text" context="#pop" String="[)\]]?\s*/{1,2}" />
+ <RegExpr attribute="Normal Text" context="#pop" String="\s*\}\s*/{1,2}" endRegion="Block"/>
+ <RegExpr attribute="Normal Text" context="#pop" String="\s*[)\]]?\s*/{1,2}" />
<keyword attribute="Keyword" context="#pop" String="keywords" /><!-- wonder why??? -->
</context>