Warning, /frameworks/syntax-highlighting/data/syntax/pure.xml is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <!DOCTYPE language> 0003 <!-- 0004 0005 Pure syntax highlighting for kate. Usage: 0006 0007 - Copy this file either to ~/.kde/share/apps/katepart/syntax or to the global 0008 /opt/kde3/share/apps/katepart/syntax directory (or wherever the Kate syntax 0009 files are located on your system). 0010 0011 - You may also want to add a mime type for *.pure files so that your file 0012 manager can recognize them. 0013 0014 - Fire up kate on your Pure script and enjoy the syntax highlighting. 0015 Folding of comments and block structure is also supported. 0016 0017 Author: Albert Graef, with some fixes contributed by Eddie Rucker 0018 0019 This library is free software; you can redistribute it and/or 0020 modify it under the terms of the GNU Library General Public 0021 License as published by the Free Software Foundation; either 0022 version 2 of the License, or (at your option) any later version. 0023 0024 This library is distributed in the hope that it will be useful, 0025 but WITHOUT ANY WARRANTY; without even the implied warranty of 0026 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0027 Library General Public License for more details. 0028 0029 You should have received a copy of the GNU Library General Public 0030 License along with this library; if not, write to the 0031 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 0032 Boston, MA 02111-1307, USA. 0033 0034 --> 0035 <language name="Pure" version="5" kateversion="5.0" section="Sources" extensions="*.pure"> 0036 <highlighting> 0037 <list name="blockstarters"> 0038 <item>case</item> 0039 <item>when</item> 0040 <item>with</item> 0041 </list> 0042 <list name="blockenders"> 0043 <item>end</item> 0044 </list> 0045 <list name="keywords"> 0046 <item>const</item> 0047 <item>def</item> 0048 <item>else</item> 0049 <item>extern</item> 0050 <item>if</item> 0051 <item>infix</item> 0052 <item>infixl</item> 0053 <item>infixr</item> 0054 <item>interface</item> 0055 <item>let</item> 0056 <item>namespace</item> 0057 <item>nonfix</item> 0058 <item>of</item> 0059 <item>otherwise</item> 0060 <item>outfix</item> 0061 <item>postfix</item> 0062 <item>prefix</item> 0063 <item>private</item> 0064 <item>public</item> 0065 <item>then</item> 0066 <item>type</item> 0067 <item>using</item> 0068 </list> 0069 <list name="special"> 0070 <item>catch</item> 0071 <item>throw</item> 0072 <item>__break__</item> 0073 <item>__trace__</item> 0074 </list> 0075 <list name="types"> 0076 <item>bigint</item> 0077 <item>bool</item> 0078 <item>char</item> 0079 <item>float</item> 0080 <item>double</item> 0081 <item>expr</item> 0082 <item>short</item> 0083 <item>int</item> 0084 <item>long</item> 0085 <item>string</item> 0086 <item>pointer</item> 0087 <item>void</item> 0088 <item>int8</item> 0089 <item>int16</item> 0090 <item>int32</item> 0091 <item>int64</item> 0092 <item>matrix</item> 0093 <item>dmatrix</item> 0094 <item>cmatrix</item> 0095 <item>imatrix</item> 0096 <item>smatrix</item> 0097 <item>nmatrix</item> 0098 </list> 0099 <contexts> 0100 <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> 0101 <DetectSpaces /> 0102 <keyword attribute="Keyword" context="#stay" String="blockstarters" beginRegion="Block" /> 0103 <keyword attribute="Keyword" context="#stay" String="blockenders" endRegion="Block" /> 0104 <keyword attribute="Keyword" context="#stay" String="keywords"/> 0105 <keyword attribute="Function" context="#stay" String="special"/> 0106 <keyword attribute="Type" context="#stay" String="types"/> 0107 <DetectIdentifier attribute="Normal Text" context="#stay"/> 0108 <RegExpr attribute="Number" context="#stay" String="0x[A-Za-z0-9]+"/> 0109 <Float attribute="Number" context="#stay"/> 0110 <Int attribute="Number" context="#stay"/> 0111 <HlCChar attribute="String Char" context="#stay"/> 0112 <DetectChar attribute="String" context="String" char="""/> 0113 <Detect2Chars attribute="Comment" context="Comment1" char="/" char1="*" beginRegion="Comment" /> 0114 <Detect2Chars attribute="Comment" context="Comment2" char="/" char1="/"/> 0115 </context> 0116 <context attribute="String" lineEndContext="#pop" name="String"> 0117 <LineContinue attribute="String" context="#stay"/> 0118 <HlCStringChar attribute="String Char" context="#stay"/> 0119 <DetectChar attribute="String" context="#pop" char="""/> 0120 </context> 0121 <context attribute="Comment" lineEndContext="#stay" name="Comment1"> 0122 <DetectSpaces /> 0123 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/> 0124 <IncludeRules context="##Comments"/> 0125 </context> 0126 <context attribute="Comment" lineEndContext="#pop" name="Comment2"> 0127 <DetectSpaces /> 0128 <IncludeRules context="##Comments"/> 0129 </context> 0130 </contexts> 0131 <itemDatas> 0132 <itemData name="Normal Text" defStyleNum="dsNormal" /> 0133 <itemData name="Keyword" defStyleNum="dsKeyword" /> 0134 <itemData name="Function" defStyleNum="dsFunction"/> 0135 <itemData name="Type" defStyleNum="dsDataType"/> 0136 <itemData name="Number" defStyleNum="dsDecVal" /> 0137 <itemData name="String" defStyleNum="dsString" /> 0138 <itemData name="String Char" defStyleNum="dsChar"/> 0139 <itemData name="Comment" defStyleNum="dsComment" /> 0140 </itemDatas> 0141 </highlighting> 0142 <general> 0143 <keywords casesensitive="1" /> 0144 <comments> 0145 <comment name="singleLine" start="//" /> 0146 <comment name="multiLine" start="/*" end="*/" region="Comment" /> 0147 </comments> 0148 </general> 0149 </language> 0150 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->