summaryrefslogtreecommitdiffstats
path: root/kate/data/vcard.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/vcard.xml')
-rw-r--r--kate/data/vcard.xml45
1 files changed, 45 insertions, 0 deletions
diff --git a/kate/data/vcard.xml b/kate/data/vcard.xml
new file mode 100644
index 000000000..9ee7a2edb
--- /dev/null
+++ b/kate/data/vcard.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE language SYSTEM "language.dtd" []>
+
+<language name="vCard, vCalendar, iCalendar" version="0.2" kateversion="2.5" section="Markup" extensions="*.iCal;*.iCalendar;.ics;*.ifb;*.iFBf;*.vcal;*.vcalendar;*.vcard;*.vcf;" author="Lukas Sommer" mimetype="text/calendar;text/vcard" license="public domain">
+
+ <highlighting>
+
+ <contexts>
+ <context attribute="Property" lineEndContext="#stay" name="contextProperty">
+ <StringDetect attribute="vCard" String="BEGIN:" beginRegion="region" context="contextAttribute" column="0"/>
+ <StringDetect attribute="vCard" String="END:" endRegion="region" context="contextAttribute" column="0"/>
+ <DetectChar char=" " context="contextAttribute" column="0"/>
+ <DetectChar attribute="Delimiter" context="contextAttribute" char=":" />
+ <DetectChar attribute="Delimiter" context="contextParameterKey" char=";" />
+ </context>
+ <context attribute="Parameter key" lineEndContext="#pop" name="contextParameterKey">
+ <DetectChar attribute="Assignment" context="contextParameterValue" char="=" />
+ <DetectChar attribute="Delimiter" context="contextAttribute" char=":" />
+ </context>
+ <context attribute="Parameter value" lineEndContext="#pop" name="contextParameterValue">
+ <DetectChar attribute="Delimiter" context="contextParameterKey" char=";" />
+ <DetectChar attribute="Delimiter" context="contextAttribute" char=":" />
+ </context>
+ <context attribute="Attribute" lineEndContext="#pop" name="contextAttribute">
+ <DetectChar attribute="Delimiter" char=";" />
+ </context>
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Assignment" defStyleNum="dsKeyword"/>
+ <itemData name="Attribute" defStyleNum="dsString"/>
+ <itemData name="Delimiter" defStyleNum="dsKeyword"/>
+ <itemData name="Parameter key" defStyleNum="dsFunction"/>
+ <itemData name="Parameter value" defStyleNum="dsOthers"/>
+ <itemData name="Property" defStyleNum="dsKeyword"/> <!-- dsDataType -->
+ <itemData name="vCard" defStyleNum="dsRegionMarker"/>
+ </itemDatas>
+
+ </highlighting>
+
+ <general>
+ </general>
+
+</language>