Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/perl.xml
Show All 33 Lines | 3 | <!-- | |||
---|---|---|---|---|---|
34 | 34 | | |||
35 | find a here delimiter like '*END*' (Shell.pm). Requires that when a regex is | 35 | find a here delimiter like '*END*' (Shell.pm). Requires that when a regex is | ||
36 | inserting a dynamic string, it escapes [*(){}$[] | 36 | inserting a dynamic string, it escapes [*(){}$[] | ||
37 | 37 | | |||
38 | support for more regex extensions, such as (?>), (?{}), (?(cond)yes|no) | 38 | support for more regex extensions, such as (?>), (?{}), (?(cond)yes|no) | ||
39 | 39 | | |||
40 | Enhance tr/// and y/// support. | 40 | Enhance tr/// and y/// support. | ||
41 | --> | 41 | --> | ||
42 | <language name="Perl" version="7" kateversion="2.4" section="Scripts" extensions="*.pl;*.PL;*.pm;*.pl6;*.PL6;*.p6;*.pm6;" mimetype="application/x-perl;text/x-perl" priority="5" author="Anders Lund (anders@alweb.dk)" license="LGPLv2"> | 42 | <language name="Perl" version="8" kateversion="2.4" section="Scripts" extensions="*.pl;*.PL;*.pm;*.pl6;*.PL6;*.p6;*.pm6;" mimetype="application/x-perl;text/x-perl" priority="5" author="Anders Lund (anders@alweb.dk)" license="LGPLv2"> | ||
43 | <highlighting> | 43 | <highlighting> | ||
44 | <list name="keywords"> | 44 | <list name="keywords"> | ||
45 | <item>if</item> | 45 | <item>if</item> | ||
46 | <item>unless</item> | 46 | <item>unless</item> | ||
47 | <item>else</item> | 47 | <item>else</item> | ||
48 | <item>elsif</item> | 48 | <item>elsif</item> | ||
49 | <item>while</item> | 49 | <item>while</item> | ||
50 | <item>until</item> | 50 | <item>until</item> | ||
▲ Show 20 Lines • Show All 327 Lines • ▼ Show 20 Line(s) | 340 | <context name="normal" attribute="Normal Text" lineEndContext="#stay"> | |||
378 | <RegExpr attribute="Normal Text" context="#stay" String="\w+[=]" /> | 378 | <RegExpr attribute="Normal Text" context="#stay" String="\w+[=]" /> | ||
379 | 379 | | |||
380 | <RegExpr attribute="Operator" context="find_quoted" String="\bq(?=[qwx]?\s*[^\w\s])" /> | 380 | <RegExpr attribute="Operator" context="find_quoted" String="\bq(?=[qwx]?\s*[^\w\s])" /> | ||
381 | <RegExpr attribute="Operator" context="find_subst" String="\bs(?=\s*[^\w\s\]})])" /> | 381 | <RegExpr attribute="Operator" context="find_subst" String="\bs(?=\s*[^\w\s\]})])" /> | ||
382 | <RegExpr attribute="Operator" context="tr" String="\b(?:tr|y)\s*(?=[^\w\s\]})])" /> | 382 | <RegExpr attribute="Operator" context="tr" String="\b(?:tr|y)\s*(?=[^\w\s\]})])" /> | ||
383 | 383 | | |||
384 | <RegExpr attribute="Operator" context="find_pattern" String="\b(?:m|qr)(?=\s*[^\w\s\]})])" /> | 384 | <RegExpr attribute="Operator" context="find_pattern" String="\b(?:m|qr)(?=\s*[^\w\s\]})])" /> | ||
385 | 385 | | |||
386 | <RegExpr attribute="Normal Text" context="#stay" String="[\w_]+\s*/" /> | 386 | <RegExpr attribute="Normal Text" context="#stay" String="[\w_]+\s*//?\=?" /> | ||
387 | <RegExpr attribute="Normal Text" context="#stay" String="[<>"':]/" /> | 387 | <RegExpr attribute="Normal Text" context="#stay" String="[<>"':]//?\=?" /> | ||
388 | <!-- Avoid conflicts between operators / and // --> | ||||
389 | <StringDetect attribute="Normal Text" context="#stay" String="//=" /> | ||||
390 | <Detect2Chars attribute="Normal Text" context="#stay" char="/" char1="/" /> | ||||
388 | <DetectChar attribute="Operator" context="pattern_slash" char="/" beginRegion="Pattern" /> | 391 | <DetectChar attribute="Operator" context="pattern_slash" char="/" beginRegion="Pattern" /> | ||
389 | <RegExpr attribute="Operator" context="#stay" String="-[rwxoRWXOeszfdlpSbctugkTBMAC]\b" /> | 392 | <RegExpr attribute="Operator" context="#stay" String="-[rwxoRWXOeszfdlpSbctugkTBMAC]\b" /> | ||
390 | 393 | | |||
391 | <DetectChar attribute="Normal Text" context="#stay" char="{" beginRegion="Block" /> | 394 | <DetectChar attribute="Normal Text" context="#stay" char="{" beginRegion="Block" /> | ||
392 | <DetectChar attribute="Normal Text" context="#stay" char="}" endRegion="Block" /> | 395 | <DetectChar attribute="Normal Text" context="#stay" char="}" endRegion="Block" /> | ||
393 | </context> | 396 | </context> | ||
394 | 397 | | |||
395 | <!-- ====== quoted construct central ===== --> | 398 | <!-- ====== quoted construct central ===== --> | ||
▲ Show 20 Lines • Show All 483 Lines • Show Last 20 Lines |