2022-03-14 23:40:25 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2022-03-16 13:40:30 -04:00
|
|
|
<!DOCTYPE language SYSTEM "language.dtd" [
|
|
|
|
<!ENTITY tok_start "(?<=^|\s|[(\[{}\]),])">
|
|
|
|
<!ENTITY tok_end "(?=$|\s|[(\[{}\]),])">
|
|
|
|
]>
|
2022-03-14 23:40:25 -04:00
|
|
|
|
|
|
|
<language name="Maude" section="Sources" extensions="*.maude"
|
2022-03-14 23:44:09 -04:00
|
|
|
version="1" kateversion="5.53">
|
2022-03-14 23:40:25 -04:00
|
|
|
<highlighting>
|
|
|
|
<list name="modules">
|
|
|
|
<item>mod</item> <item>endm</item> <item>is</item>
|
|
|
|
<item>fmod</item> <item>endfm</item>
|
2022-03-15 23:55:30 -04:00
|
|
|
<item>smod</item> <item>endsm</item>
|
2022-03-14 23:40:25 -04:00
|
|
|
<item>th</item> <item>endth</item>
|
|
|
|
<item>fth</item> <item>endfth</item>
|
2022-03-15 23:55:30 -04:00
|
|
|
<item>sth</item> <item>endsth</item>
|
2022-03-14 23:40:25 -04:00
|
|
|
<item>view</item> <item>endv</item>
|
|
|
|
<item>from</item> <item>to</item>
|
|
|
|
</list>
|
|
|
|
|
|
|
|
<list name="import">
|
|
|
|
<item>protecting</item> <item>pr</item>
|
|
|
|
<item>including</item> <item>inc</item>
|
|
|
|
<item>extending</item> <item>ex</item>
|
|
|
|
</list>
|
|
|
|
|
|
|
|
<list name="sorts">
|
|
|
|
<item>sort</item> <item>sorts</item>
|
|
|
|
<item>subsort</item> <item>subsorts</item>
|
|
|
|
</list>
|
|
|
|
|
2022-03-15 23:55:30 -04:00
|
|
|
<list name="ops"> <item>op</item> <item>ops</item> </list>
|
|
|
|
<list name="vars"> <item>var</item> <item>vars</item> </list>
|
|
|
|
<list name="eqs"> <item>eq</item> <item>ceq</item> </list>
|
|
|
|
<list name="rules"> <item>rl</item> <item>crl</item> </list>
|
|
|
|
<list name="members"> <item>mb</item> <item>cmb</item> </list>
|
|
|
|
<list name="strats"> <item>strat</item> <item>strats</item> </list>
|
|
|
|
<list name="sds"> <item>sd</item> <item>csd</item> </list>
|
|
|
|
<list name="if"> <item>if</item> </list>
|
2022-03-14 23:40:25 -04:00
|
|
|
|
|
|
|
<contexts>
|
|
|
|
<context attribute="default" lineEndContext="#stay" name="Default">
|
|
|
|
<keyword attribute="modules" context="#stay" String="modules" />
|
|
|
|
<keyword attribute="import" context="#stay" String="import" />
|
|
|
|
<keyword attribute="sorts" context="#stay" String="sorts" />
|
|
|
|
<keyword attribute="ops" context="#stay" String="ops" />
|
|
|
|
<keyword attribute="vars" context="#stay" String="vars" />
|
|
|
|
<keyword attribute="eqs" context="#stay" String="eqs" />
|
|
|
|
<keyword attribute="rules" context="#stay" String="rules" />
|
|
|
|
<keyword attribute="members" context="#stay" String="members" />
|
2022-03-16 13:40:30 -04:00
|
|
|
<keyword attribute="strats" context="#stay" String="strats" />
|
|
|
|
<keyword attribute="sds" context="#stay" String="sds" />
|
2022-03-14 23:40:25 -04:00
|
|
|
|
|
|
|
<keyword attribute="if" context="#stay" String="if" />
|
|
|
|
<RegExpr attribute="if" context="#stay" String="/\\" />
|
|
|
|
|
|
|
|
<RegExpr attribute="punc" context="#stay"
|
2022-03-16 13:40:30 -04:00
|
|
|
String="&tok_start;(?::[:=]?|->|<-|=>|=(?:=|/=)?|@)&tok_end;" />
|
2022-03-14 23:40:25 -04:00
|
|
|
|
|
|
|
<RegExpr attribute="delim" context="#stay"
|
|
|
|
String="[{}\[\](),]|(?<=^|\s)\.(?=\s|$)" />
|
|
|
|
|
|
|
|
<DetectChar attribute="string" context="String" char=""" />
|
|
|
|
|
2022-03-16 13:40:30 -04:00
|
|
|
<RegExpr attribute="rat" context="#stay"
|
|
|
|
String="&tok_start;-?\d+(?:/\d+)?&tok_end;" />
|
2022-03-15 23:55:30 -04:00
|
|
|
<RegExpr attribute="float" context="#stay"
|
2022-03-16 13:40:30 -04:00
|
|
|
String="&tok_start;-?\d*\.\d+(?:[eE][+-]?\d+)?&tok_end;" />
|
|
|
|
<RegExpr attribute="float" context="#stay"
|
|
|
|
String="&tok_start;-?Infinity&tok_end;" />
|
2022-03-14 23:40:25 -04:00
|
|
|
|
|
|
|
<RegExpr attribute="comment" context="comment s"
|
|
|
|
String="(?:---|\*\*\*)(?!\()" />
|
|
|
|
<RegExpr attribute="comment" context="comment m"
|
|
|
|
String="(?:---|\*\*\*)\(" />
|
2022-03-15 23:55:30 -04:00
|
|
|
|
|
|
|
<!-- todo make this more exact? -->
|
|
|
|
<RegExpr attribute="qid" context="#stay"
|
|
|
|
String="'(?:\S+|"(?:[^\\"]|\\.)*")" />
|
2022-03-14 23:40:25 -04:00
|
|
|
</context>
|
|
|
|
|
|
|
|
<context attribute="string" lineEndContext="#stay" name="String">
|
2022-03-15 23:55:30 -04:00
|
|
|
<RegExpr attribute="string esc" context="#stay" String="\\." />
|
|
|
|
<DetectChar attribute="string" context="#pop" char=""" />
|
2022-03-14 23:40:25 -04:00
|
|
|
</context>
|
|
|
|
|
|
|
|
<context attribute="comment" lineEndContext="#pop" name="comment s" />
|
|
|
|
|
|
|
|
<context attribute="comment" lineEndContext="#stay" name="comment m">
|
|
|
|
<DetectChar attribute="comment" context="comment m" char="(" />
|
|
|
|
<DetectChar attribute="comment" context="#pop" char=")" />
|
|
|
|
</context>
|
|
|
|
</contexts>
|
|
|
|
|
|
|
|
<itemDatas>
|
|
|
|
<itemData name="default" defStyleNum="dsNormal" />
|
|
|
|
<itemData name="modules" defStyleNum="dsPreprocessor" />
|
|
|
|
<itemData name="import" defStyleNum="dsPreprocessor" />
|
|
|
|
<itemData name="sorts" defStyleNum="dsDataType" />
|
|
|
|
<itemData name="ops" defStyleNum="dsFunction" />
|
|
|
|
<itemData name="vars" defStyleNum="dsVariable" />
|
|
|
|
<itemData name="eqs" defStyleNum="dsFunction" />
|
|
|
|
<itemData name="rules" defStyleNum="dsControlFlow" />
|
|
|
|
<itemData name="members" defStyleNum="dsKeyword" />
|
2022-03-15 23:55:30 -04:00
|
|
|
<itemData name="strats" defStyleNum="dsControlFlow" />
|
|
|
|
<itemData name="sds" defStyleNum="dsControlFlow" />
|
2022-03-14 23:40:25 -04:00
|
|
|
<itemData name="if" defStyleNum="dsControlFlow" />
|
|
|
|
<itemData name="punc" defStyleNum="dsOperator" />
|
|
|
|
<itemData name="delim" defStyleNum="dsNormal" />
|
|
|
|
<itemData name="string" defStyleNum="dsString" />
|
|
|
|
<itemData name="string esc" defStyleNum="dsSpecialChar" />
|
|
|
|
<itemData name="float" defStyleNum="dsFloat" />
|
|
|
|
<itemData name="rat" defStyleNum="dsFloat" />
|
2022-03-15 23:55:30 -04:00
|
|
|
<itemData name="qid" defStyleNum="dsString" />
|
2022-03-14 23:40:25 -04:00
|
|
|
<itemData name="comment" defStyleNum="dsComment" />
|
|
|
|
</itemDatas>
|
|
|
|
</highlighting>
|
|
|
|
|
|
|
|
<general>
|
2022-03-16 13:40:30 -04:00
|
|
|
<keywords
|
|
|
|
casesensitive="true"
|
|
|
|
additionalDeliminators="[]{}(), 	"
|
|
|
|
wordWrapDeliminators=" " />
|
2022-03-14 23:40:25 -04:00
|
|
|
</general>
|
|
|
|
</language>
|