| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name="nesC" author="Shakthi Kannan" license="GPLv2" version="7" kateversion="5.0" section="Sources" extensions="*.nc" mimetype="text/x-ncsrc" priority="5"> |
| 4 |
<highlighting> |
| 5 |
<list name="keywords"> |
| 6 |
<item>break</item> |
| 7 |
<item>case</item> |
| 8 |
<item>continue</item> |
| 9 |
<item>default</item> |
| 10 |
<item>do</item> |
| 11 |
<item>else</item> |
| 12 |
<item>enum</item> |
| 13 |
<item>extern</item> |
| 14 |
<item>for</item> |
| 15 |
<item>goto</item> |
| 16 |
<item>if</item> |
| 17 |
<item>inline</item> |
| 18 |
<item>return</item> |
| 19 |
<item>sizeof</item> |
| 20 |
<item>struct</item> |
| 21 |
<item>switch</item> |
| 22 |
<item>typedef</item> |
| 23 |
<item>union</item> |
| 24 |
<item>while</item> <item>interface</item> |
| 25 |
<item>module</item> |
| 26 |
<item>configuration</item> |
| 27 |
<item>implementation</item> |
| 28 |
<item>components</item> |
| 29 |
<item>as</item> |
| 30 |
<item>uses</item> |
| 31 |
<item>provides</item> |
| 32 |
<item>includes</item> |
| 33 |
<item>command</item> |
| 34 |
<item>event</item> |
| 35 |
<item>async</item> |
| 36 |
<item>task</item> |
| 37 |
<item>norace</item> |
| 38 |
<item>default</item> |
| 39 |
<item>__attribute__</item> |
| 40 |
<item>atomic</item> |
| 41 |
<item>call</item> |
| 42 |
<item>signal</item> |
| 43 |
<item>post</item> |
| 44 |
|
| 45 |
</list> |
| 46 |
<list name="types"> |
| 47 |
<item>auto</item> |
| 48 |
<item>char</item> |
| 49 |
<item>const</item> |
| 50 |
<item>double</item> |
| 51 |
<item>float</item> |
| 52 |
<item>int</item> |
| 53 |
<item>long</item> |
| 54 |
<item>register</item> |
| 55 |
<item>restrict</item> |
| 56 |
<item>short</item> |
| 57 |
<item>signed</item> |
| 58 |
<item>static</item> |
| 59 |
<item>unsigned</item> |
| 60 |
<item>void</item> |
| 61 |
<item>volatile</item> |
| 62 |
<item>_Imaginary</item> |
| 63 |
<item>_Complex</item> |
| 64 |
<item>_Bool</item> |
| 65 |
<item>bool</item> |
| 66 |
<item>uint8_t</item> |
| 67 |
<item>uint16_t</item> |
| 68 |
<item>uint32_t</item> |
| 69 |
<item>uint64_t</item> |
| 70 |
<item>result_t</item> |
| 71 |
<item>SUCCESS</item> |
| 72 |
<item>FAIL</item> |
| 73 |
<item>TRUE</item> |
| 74 |
<item>FALSE</item> |
| 75 |
<item>TOSH_INTERRUPT</item> |
| 76 |
<item>TOSH_SIGNAL</item> |
| 77 |
<item>TOS_MsgPtr</item> |
| 78 |
<item>TOS_Msg</item> |
| 79 |
</list> |
| 80 |
<contexts> |
| 81 |
<context attribute="Normal Text" lineEndContext="#stay" name="Normal"> |
| 82 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 83 |
<keyword attribute="Data Type" context="#stay" String="types"/> |
| 84 |
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/> |
| 85 |
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/> |
| 86 |
<Float attribute="Float" context="Float Suffixes"/> |
| 87 |
<HlCOct attribute="Octal" context="#stay"/> |
| 88 |
<HlCHex attribute="Hex" context="#stay"/> |
| 89 |
<Int attribute="Decimal" context="Int Suffixes"/> |
| 90 |
<HlCChar attribute="Char" context="#stay"/> |
| 91 |
<DetectChar attribute="String" context="String" char="""/> |
| 92 |
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/> |
| 93 |
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/> |
| 94 |
<StringDetect attribute="Preprocessor" context="Outscoped" String="#if 0" insensitive="false"/> |
| 95 |
<DetectChar attribute="Preprocessor" context="Preprocessor" char="#"/> |
| 96 |
<RegExpr attribute="Function" context="#stay" String="\b[_\w][_\w\d]*(?=[\s]*[(])"/> |
| 97 |
<DetectChar attribute="Symbol" context="Member" char="."/> |
| 98 |
<AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/*<=>?[]|~^;"/> |
| 99 |
</context> |
| 100 |
<context name="Float Suffixes" attribute="Float" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 101 |
<AnyChar String="fdlqwFDLQW" attribute="Float" context="#stay"/> |
| 102 |
</context> |
| 103 |
<context name="Int Suffixes" attribute="Decimal" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 104 |
<AnyChar attribute="Decimal" context="#stay" String="ULRKHulrkh"/> |
| 105 |
</context> |
| 106 |
<context attribute="String" lineEndContext="#pop" name="String"> |
| 107 |
<LineContinue attribute="String" context="#stay"/> |
| 108 |
<HlCStringChar attribute="String Char" context="#stay"/> |
| 109 |
<DetectChar attribute="String" context="#pop" char="""/> |
| 110 |
</context> |
| 111 |
<context attribute="Normal Text" lineEndContext="#pop" name="Member"> |
| 112 |
<RegExpr attribute="Function" context="#pop" String="\b[_\w][_\w\d]*(?=[\s]*)"/> |
| 113 |
</context> |
| 114 |
|
| 115 |
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1"> |
| 116 |
<DetectSpaces /> |
| 117 |
<IncludeRules context="##Comments"/> |
| 118 |
</context> |
| 119 |
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2"> |
| 120 |
<DetectSpaces /> |
| 121 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/> |
| 122 |
<IncludeRules context="##Comments"/> |
| 123 |
</context> |
| 124 |
|
| 125 |
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor"> |
| 126 |
<LineContinue attribute="Preprocessor" context="#stay"/> |
| 127 |
<StringDetect attribute="Preprocessor" context="Define" String="define"/> |
| 128 |
<RangeDetect attribute="Prep. Lib" context="#stay" char=""" char1="""/> |
| 129 |
<RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/> |
| 130 |
<Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2"/> |
| 131 |
</context> |
| 132 |
<context attribute="Preprocessor" lineEndContext="#pop" name="Define"> |
| 133 |
<LineContinue attribute="Preprocessor" context="#stay"/> |
| 134 |
</context> |
| 135 |
<context attribute="Comment" lineEndContext="#stay" name="Commentar/Preprocessor"> |
| 136 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment2"/> |
| 137 |
<DetectSpaces /> |
| 138 |
<IncludeRules context="##Comments"/> |
| 139 |
</context> |
| 140 |
<context attribute="Comment" lineEndContext="#stay" name="Outscoped"> |
| 141 |
<DetectSpaces /> |
| 142 |
<StringDetect attribute="Comment" context="Outscoped intern" String="#if" column="0"/> |
| 143 |
<StringDetect attribute="Preprocessor" context="#pop" String="#endif"/> |
| 144 |
<StringDetect attribute="Preprocessor" context="#pop" String="#else"/> |
| 145 |
<IncludeRules context="##Comments"/> |
| 146 |
</context> |
| 147 |
<context attribute="Comment" lineEndContext="#stay" name="Outscoped intern"> |
| 148 |
<StringDetect attribute="Comment" context="Outscoped intern" String="#if"/> |
| 149 |
<StringDetect attribute="Comment" context="#pop" String="#endif"/> |
| 150 |
</context> |
| 151 |
</contexts> |
| 152 |
<itemDatas> |
| 153 |
<itemData name="Normal Text" defStyleNum="dsNormal"/> |
| 154 |
<itemData name="Keyword" defStyleNum="dsKeyword"/> |
| 155 |
<itemData name="Function" defStyleNum="dsFunction"/> |
| 156 |
<itemData name="Data Type" defStyleNum="dsDataType"/> |
| 157 |
<itemData name="Decimal" defStyleNum="dsDecVal"/> |
| 158 |
<itemData name="Octal" defStyleNum="dsBaseN"/> |
| 159 |
<itemData name="Hex" defStyleNum="dsBaseN"/> |
| 160 |
<itemData name="Float" defStyleNum="dsFloat"/> |
| 161 |
<itemData name="Char" defStyleNum="dsChar"/> |
| 162 |
<itemData name="String" defStyleNum="dsString"/> |
| 163 |
<itemData name="String Char" defStyleNum="dsChar"/> |
| 164 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 165 |
<itemData name="Symbol" defStyleNum="dsOperator"/> |
| 166 |
<itemData name="Preprocessor" defStyleNum="dsPreprocessor"/> |
| 167 |
<itemData name="Prep. Lib" defStyleNum="dsImport"/> |
| 168 |
</itemDatas> |
| 169 |
</highlighting> |
| 170 |
<general> |
| 171 |
<comments> |
| 172 |
<comment name="singleLine" start="//"/> |
| 173 |
<comment name="multiLine" start="/*" end="*/" region="Comment"/> |
| 174 |
</comments> |
| 175 |
<keywords casesensitive="1"/> |
| 176 |
</general> |
| 177 |
</language> |
| 178 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |