| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<!-- |
| 4 |
Copyright (C) Joseph Wenninger, 2008 |
| 5 |
Highlighting for SystemC (www.systemc.org) |
| 6 |
Highlighting licensed as LGPL 2+ |
| 7 |
================================================================================ |
| 8 |
July 17th 2008 Initial version |
| 9 |
--> |
| 10 |
<language name="SystemC" version="5" kateversion="5.79" section="Hardware" extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;*.moc" mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr" priority="1" author="Joseph Wenninger ([email protected])" license="LGPLv2+"> |
| 11 |
|
| 12 |
<highlighting> |
| 13 |
<list name="systemc_keywords"> |
| 14 |
<item>sensitive</item> |
| 15 |
</list> |
| 16 |
<list name="systemc_functions"> |
| 17 |
<item>dont_initialize</item> |
| 18 |
<item>gen_unique_name</item> |
| 19 |
<item>name</item> |
| 20 |
<item>next_trigger</item> |
| 21 |
<item>sc_assert_fail</item> |
| 22 |
<item>sc_copyright</item> |
| 23 |
<item>sc_cycle</item> |
| 24 |
<item>sc_initialize</item> |
| 25 |
<item>sc_simulation_time</item> |
| 26 |
<item>sc_start</item> |
| 27 |
<item>sc_stop</item> |
| 28 |
<item>sc_get_default_time_unit</item> |
| 29 |
<item>sc_get_default_time_resolution</item> |
| 30 |
<item>sc_time_stamp</item> |
| 31 |
<item>sc_version</item> |
| 32 |
<item>timed_out</item> |
| 33 |
<item>wait</item> |
| 34 |
<item>sc_trace</item> |
| 35 |
<item>sc_create_vcd_trace_file</item> |
| 36 |
<item>sc_close_vcd_trace_file</item> |
| 37 |
|
| 38 |
</list> |
| 39 |
<list name="systemc_macros"> |
| 40 |
<item>SC_MODULE</item> |
| 41 |
<item>SC_CTOR</item> |
| 42 |
<item>SC_METHOD</item> |
| 43 |
<item>SC_THREAD</item> |
| 44 |
</list> |
| 45 |
<list name="systemc_datatypes"> |
| 46 |
<item>sc_time_unit</item> |
| 47 |
<item>sc_clock</item> |
| 48 |
<item>sc_int</item> |
| 49 |
<item>sc_uint</item> |
| 50 |
<item>sc_bigint</item> |
| 51 |
<item>sc_biguint</item> |
| 52 |
<item>sc_logic</item> |
| 53 |
<item>sc_lv</item> |
| 54 |
<item>sc_bit</item> |
| 55 |
<item>sc_bv</item> |
| 56 |
<item>sc_fixed</item> |
| 57 |
<item>sc_ufixed</item> |
| 58 |
<item>sc_fixed_fast</item> |
| 59 |
<item>sc_ufixed_fast</item> |
| 60 |
<item>sc_fix</item> |
| 61 |
<item>sc_ufix</item> |
| 62 |
<item>sc_buffer</item> |
| 63 |
<item>sc_fifo</item> |
| 64 |
<item>sc_mutex</item> |
| 65 |
<item>sc_semaphore</item> |
| 66 |
<item>sc_signal</item> |
| 67 |
<item>sc_signal_resolved</item> |
| 68 |
<item>sc_signal_rv</item> |
| 69 |
<item>sc_fifo_in_if</item> |
| 70 |
<item>sc_fifo_out_if</item> |
| 71 |
<item>sc_mutex_if</item> |
| 72 |
<item>sc_semaphore_if</item> |
| 73 |
<item>sc_signal_in_if</item> |
| 74 |
<item>sc_signal_inout_if</item> |
| 75 |
<item>sc_master</item> |
| 76 |
<item>sc_inmaster</item> |
| 77 |
<item>sc_outmaster</item> |
| 78 |
<item>sc_inout_master</item> |
| 79 |
<item>sc_indexed</item> |
| 80 |
<item>sc_slave</item> |
| 81 |
<item>sc_inslave</item> |
| 82 |
<item>sc_outslave</item> |
| 83 |
<item>sc_inoutslave</item> |
| 84 |
<item>sc_in</item> |
| 85 |
<item>sc_out</item> |
| 86 |
<item>sc_inout</item> |
| 87 |
<item>sc_noHandshake</item> |
| 88 |
<item>sc_fullHandshake</item> |
| 89 |
<item>sc_memfullHandshake</item> |
| 90 |
<item>sc_enable_Handshake</item> |
| 91 |
<item>sc_memenHandshake</item> |
| 92 |
<item>sc_link_mp</item> |
| 93 |
<item>sc_trace_file</item> |
| 94 |
</list> |
| 95 |
<contexts> |
| 96 |
<context name="Normal" attribute="Normal Text" lineEndContext="#stay"> |
| 97 |
<Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true"/> <!-- see below --> |
| 98 |
<keyword attribute="Extensions-Keywords" context="#stay" String="systemc_keywords" /> |
| 99 |
<keyword attribute="Extensions-Functions" context="#stay" String="systemc_functions" /> |
| 100 |
<keyword attribute="Extensions-Macros" context="#stay" String="systemc_macros" /> |
| 101 |
<keyword attribute="Data Type" context="#stay" String="systemc_datatypes" /> |
| 102 |
<IncludeRules context="##C++" /> |
| 103 |
</context> |
| 104 |
|
| 105 |
<context attribute="Comment" lineEndContext="#pop" name="MatchComment" fallthroughContext="#pop"> |
| 106 |
<IncludeRules context="##Doxygen"/> |
| 107 |
<Detect2Chars attribute="Comment" context="#pop!Commentar 2" char="/" char1="*" beginRegion="Comment"/> |
| 108 |
</context> |
| 109 |
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2"> |
| 110 |
<DetectSpaces /> |
| 111 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/> |
| 112 |
<IncludeRules context="##Comments" /> |
| 113 |
<DetectIdentifier /> |
| 114 |
</context> |
| 115 |
|
| 116 |
</contexts> |
| 117 |
|
| 118 |
<itemDatas> |
| 119 |
<itemData name="Normal Text" defStyleNum="dsNormal" /> |
| 120 |
<itemData name="Extensions-Macros" defStyleNum="dsKeyword" color="#0095ff" selColor="#ffffff" bold="1" italic="0"/> |
| 121 |
<itemData name="Extensions-Functions" defStyleNum="dsKeyword" color="#000000" selColor="#ffffff" bold="1" italic="1"/> |
| 122 |
<itemData name="Extensions-Keywords" defStyleNum="dsKeyword" /> |
| 123 |
<itemData name="Data Type" defStyleNum="dsDataType"/> |
| 124 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 125 |
</itemDatas> |
| 126 |
|
| 127 |
</highlighting> |
| 128 |
<general> |
| 129 |
<comments> |
| 130 |
<comment name="singleLine" start="//" /> |
| 131 |
<!-- implement support for something like this:<comment name="multiLine" start="/*" end="*/" region="Comment##C++"/>--> |
| 132 |
<comment name="multiLine" start="/*" end="*/" region="Comment"/> |
| 133 |
</comments> |
| 134 |
<keywords casesensitive="1" /> |
| 135 |
</general> |
| 136 |
</language> |