<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language>
<language name="Gemtext" version="1" author="Cuche (mike@cuche.cc)" kateversion="5.62"
section="Markup" extensions="*.gmi;*.gemini" mimetype="text/gemini" license="MIT">
<highlighting>
	<contexts>
		<context name="main" attribute="Normal Text">
			<RegExpr attribute="Header" context="header" String="^(#{1,3})\s" column="0" />
			<DetectChar attribute="Quote" context="quote" char=">" column="0"/>
			<StringDetect attribute="List Bullet" String="* " column="0"/>
			<RegExpr attribute="Link URL" context="#pop!link-description" String="^=>\s*\S+" column="0"/>
			<StringDetect attribute="Preformatted Text" context="#pop!preformatted-region"  String="```" column="0" beginRegion="preformatted-block"/>
		</context>
		<context name="header" attribute="Header" lineEndContext="#pop"/>
		<context name="quote" attribute="Quote" lineEndContext="#pop"/>
		<context name="link-description" attribute="Link Description" lineEndContext="#pop">
			<RegExpr attribute="Link Description" String=".*"/>
		</context>
		<context name="preformatted-region" attribute="Preformatted Text" lineEndContext="#stay" noIndentationBasedFolding="true">
			<StringDetect attribute="Preformatted Text" String="```" column="0" context="#pop" endRegion="preformatted-block"/>
		</context>
	</contexts>
	<itemDatas>
		<itemData name="Normal Text" defStyleNum="dsNormal"/>
		<itemData name="Header" defStyleNum="dsFunction" bold="true"/>
		<itemData name="Quote" defStyleNum="dsVariable"/>
		<itemData name="List Bullet" defStyleNum="dsSpecialString" bold="true"/>
		<itemData name="Link URL" defStyleNum="dsOthers" underline="true" spellChecking="false"/>
		<itemData name="Link Description" defStyleNum="dsDocumentation"/>
		<itemData name="Preformatted Text" defStyleNum="dsInformation" spellChecking="false"/>
	</itemDatas>
</highlighting>
</language>