Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/powershell.xml
1 | <!DOCTYPE language SYSTEM "language.dtd"> | 1 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
---|---|---|---|---|---|
2 | <language | 2 | <language | ||
3 | name="PowerShell" | 3 | name="PowerShell" | ||
4 | version="4" | 4 | version="5" | ||
5 | kateversion="5.0" | 5 | kateversion="5.0" | ||
6 | extensions="*.ps1;*.ps1m;*.ps1d" | 6 | extensions="*.ps1;*.ps1m;*.ps1d" | ||
7 | section="Scripts" | 7 | section="Scripts" | ||
8 | author="Motoki Kashihara (motoki8791@gmail.com); Michael Lombardi (Michael.T.Lombardi@outlook.com)" | 8 | author="Motoki Kashihara (motoki8791@gmail.com); Michael Lombardi (Michael.T.Lombardi@outlook.com)" | ||
9 | casesensitive="0" | 9 | casesensitive="0" | ||
10 | license="MIT"> | 10 | license="MIT"> | ||
11 | <highlighting> | 11 | <highlighting> | ||
12 | <list name="keywords"> | 12 | <list name="keywords"> | ||
▲ Show 20 Lines • Show All 874 Lines • ▼ Show 20 Line(s) | 877 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> | |||
887 | <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="block1"/> | 887 | <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="block1"/> | ||
888 | <RegExpr attribute="Keyword" context="#stay" String="\b\$global(?=\s+(:))"/> | 888 | <RegExpr attribute="Keyword" context="#stay" String="\b\$global(?=\s+(:))"/> | ||
889 | <RegExpr attribute="Keyword" context="#stay" String="\b\$script(?=\s+(:))"/> | 889 | <RegExpr attribute="Keyword" context="#stay" String="\b\$script(?=\s+(:))"/> | ||
890 | <RegExpr attribute="Variable" context="#stay" String="\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*" /> | 890 | <RegExpr attribute="Variable" context="#stay" String="\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*" /> | ||
891 | <keyword attribute="Special Variable" context="#stay" String="special-variables"/> | 891 | <keyword attribute="Special Variable" context="#stay" String="special-variables"/> | ||
892 | <RegExpr attribute="Symbol" context="Member" String="[.]{1,1}" /> | 892 | <RegExpr attribute="Symbol" context="Member" String="[.]{1,1}" /> | ||
893 | <AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/> | 893 | <AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/> | ||
894 | </context> | 894 | </context> | ||
895 | <context attribute="String Char" lineEndContext="#stay" name="StringEscape"> | ||||
896 | <RegExpr attribute="String Char" String="`[`"0abefnrtv]" context="#stay"/> | ||||
897 | <RegExpr attribute="String Char" String="`u\{[0-9A-Fa-f]+\}" context="#stay"/> | ||||
898 | </context> | ||||
895 | <context attribute="String" lineEndContext="#pop" name="String"> | 899 | <context attribute="String" lineEndContext="#pop" name="String"> | ||
900 | <IncludeRules context="StringEscape"/> | ||||
896 | <LineContinue attribute="String" context="#pop"/> | 901 | <LineContinue attribute="String" context="#pop"/> | ||
897 | <DetectChar attribute="String" context="#pop" char="""/> | 902 | <DetectChar attribute="String" context="#pop" char="""/> | ||
898 | </context> | 903 | </context> | ||
899 | <context attribute="HereString" lineEndContext="#stay" name="HereStringer"> | 904 | <context attribute="HereString" lineEndContext="#stay" name="HereStringer"> | ||
900 | <Detect2Chars attribute="HereString" context="#pop" char=""" char1="@" endRegion="StringRegion"/> | 905 | <Detect2Chars attribute="HereString" context="#pop" char=""" char1="@" endRegion="StringRegion"/> | ||
901 | </context> | 906 | </context> | ||
902 | <context attribute="Normal Text" lineEndContext="#pop" name="Member" fallthrough="true" fallthroughContext="#pop"> | 907 | <context attribute="Normal Text" lineEndContext="#pop" name="Member" fallthrough="true" fallthroughContext="#pop"> | ||
903 | <RegExpr attribute="Function" context="#pop" String="\b[_\w][_\w\d]*(?=[\s]*)" /> | 908 | <RegExpr attribute="Function" context="#pop" String="\b[_\w][_\w\d]*(?=[\s]*)" /> | ||
904 | </context> | 909 | </context> | ||
905 | <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/> | 910 | <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/> | ||
906 | <context attribute="Comment" lineEndContext="#stay" name="Commentar 2"> | 911 | <context attribute="Comment" lineEndContext="#stay" name="Commentar 2"> | ||
907 | <Detect2Chars attribute="Comment" context="#pop" char="#" char1=">" endRegion="CommentRegion"/> | 912 | <Detect2Chars attribute="Comment" context="#pop" char="#" char1=">" endRegion="CommentRegion"/> | ||
908 | </context> | 913 | </context> | ||
909 | <context attribute="Cmdlets" lineEndContext="#stay" name="Cmdlet"> | 914 | <context attribute="Cmdlets" lineEndContext="#stay" name="Cmdlet"> | ||
910 | <keyword attribute="Function" context="#stay" String="cmdlets"/> | 915 | <keyword attribute="Function" context="#stay" String="cmdlets"/> | ||
911 | </context> | 916 | </context> | ||
912 | </contexts> | 917 | </contexts> | ||
913 | <itemDatas> | 918 | <itemDatas> | ||
914 | <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> | 919 | <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> | ||
915 | <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> | 920 | <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> | ||
916 | <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> | 921 | <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> | ||
917 | <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/> | 922 | <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/> | ||
918 | <itemData name="String" defStyleNum="dsString"/> | 923 | <itemData name="String" defStyleNum="dsString"/> | ||
924 | <itemData name="String Char" defStyleNum="dsChar" spellChecking="false"/> | ||||
919 | <itemData name="HereString" defStyleNum="dsVerbatimString"/> | 925 | <itemData name="HereString" defStyleNum="dsVerbatimString"/> | ||
920 | <itemData name="Comment" defStyleNum="dsComment"/> | 926 | <itemData name="Comment" defStyleNum="dsComment"/> | ||
921 | <itemData name="Cmdlets" defStyleNum="dsBuiltIn" spellChecking="false"/> | 927 | <itemData name="Cmdlets" defStyleNum="dsBuiltIn" spellChecking="false"/> | ||
922 | <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/> | 928 | <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/> | ||
923 | <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> | 929 | <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> | ||
924 | <itemData name="Special Variable" defStyleNum="dsVariable" bold="1" spellChecking="false"/> | 930 | <itemData name="Special Variable" defStyleNum="dsVariable" bold="1" spellChecking="false"/> | ||
925 | </itemDatas> | 931 | </itemDatas> | ||
926 | </highlighting> | 932 | </highlighting> | ||
927 | <general> | 933 | <general> | ||
928 | <comments> | 934 | <comments> | ||
929 | <comment name="singleLine" start="#" /> | 935 | <comment name="singleLine" start="#" /> | ||
930 | <comment name="multiLine" start="<#" end="#>" region="CommentRegion"/> | 936 | <comment name="multiLine" start="<#" end="#>" region="CommentRegion"/> | ||
931 | </comments> | 937 | </comments> | ||
932 | <keywords casesensitive="0" weakDeliminator=":-"/> | 938 | <keywords casesensitive="0" weakDeliminator=":-"/> | ||
933 | </general> | 939 | </general> | ||
934 | </language> | 940 | </language> |