Diffstat (limited to 'share/tinykate/syntax/xml.xml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | share/tinykate/syntax/xml.xml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/share/tinykate/syntax/xml.xml b/share/tinykate/syntax/xml.xml new file mode 100644 index 0000000..1167432 --- a/dev/null +++ b/share/tinykate/syntax/xml.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> +<language name="XML" section="Markup" extensions="*.docbook;*.xml;*.rc" mimetype="text/xml;text/book"> + <highlighting> + <contexts> + <context attribute="0" lineEndContext="#stay"> + <StringDetect attribute="Comment" context="4" String="<!--"/> + <RegExpr attribute="1" context="1" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" /> + </context> + + <context attribute="2" lineEndContext="#stay"> + <Detect2Chars attribute="1" context="#push" char="/" char1=">" /> + <DetectChar attribute="1" context="#push" char=">" /> + <RegExpr attribute="0" context="2" String="\s*=\s*" /> + </context> + + <context attribute="3" lineEndContext="#stay"> + <RegExpr attribute="3" context="#push" String="[A-Za-z0-9.-]*" /> + <DetectChar attribute="3" context="3" char=""" /> + </context> + + <context attribute="3" lineEndContext="#stay"> + <DetectChar attribute="3" context="#pop#pop" char=""" /> + </context> + + <context attribute="Comment" lineEndContext="#stay"> + <String---Detect attribute="Comment" context="4" String="<!--"/> + <StringDetect attribute="Comment" context="#pop" String="-->"/> + </context> + + </contexts> + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + <itemData name="Keyword" defStyleNum="dsKeyword"/> + <itemData name="Identifier" defStyleNum="dsOthers"/> + <itemData name="Types" defStyleNum="dsDataType"/> + <itemData name="String" defStyleNum="dsString"/> + <itemData name="Comment" defStyleNum="dsComment"/> + </itemDatas> + </highlighting> + <general> + <comments> + <comment name="multiLine" start="<!--" end="//-->" /> + </comments> + <keywords casesensitive="0" /> + </general> +</language> |