summaryrefslogtreecommitdiffstats
path: root/kate/data/bibtex.xml
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /kate/data/bibtex.xml
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/data/bibtex.xml')
-rw-r--r--kate/data/bibtex.xml65
1 files changed, 65 insertions, 0 deletions
diff --git a/kate/data/bibtex.xml b/kate/data/bibtex.xml
new file mode 100644
index 000000000..b1c225521
--- /dev/null
+++ b/kate/data/bibtex.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd">
+<language name="BibTeX" version="1.13" kateversion="2.4" extensions="*.bib" section="Markup" mimetype="text/x-bib" casesensitive="1" author="Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)" license="LGPL">
+ <highlighting>
+ <list name="kw_entry">
+ <item>@article</item>
+ <item>@book</item>
+ <item>@booklet</item>
+ <item>@conference</item>
+ <item>@inbook</item>
+ <item>@incollection</item>
+ <item>@inproceedings</item>
+ <item>@manual</item>
+ <item>@mastersthesis</item>
+ <item>@misc</item>
+ <item>@phdthesis</item>
+ <item>@proceedings</item>
+ <item>@techreport</item>
+ <item>@unpublished</item>
+ <item>@collection</item>
+ <item>@patent</item>
+ </list>
+ <list name="kw_command">
+ <item>@string</item>
+ <item>@preamble</item>
+ <item>@comment</item>
+ </list>
+ <contexts>
+ <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
+ <RegExpr String="([a-zA-Z]+)\s*=" attribute="Field" context="#stay" firstNonSpace="true" />
+ <keyword String="kw_entry" attribute="Entry" context="Entry"/>
+ <keyword String="kw_command" attribute="Command" context="#stay"/>
+ <DetectChar char="{" attribute="Normal Text" context="#stay" beginRegion="block" />
+ <DetectChar char="}" attribute="Normal Text" context="#stay" endRegion="block" />
+ <RegExpr String="\\([a-zA-Z]+|.)" attribute="Char" context="#stay"/>
+ <DetectChar char="&quot;" attribute="String" context="String"/>
+ </context>
+
+ <context name="Entry" attribute="Ref Key" lineEndContext="#stay">
+ <DetectChar char="," attribute="Normal Text" context="#pop"/>
+ <DetectChar char="{" attribute="Normal Text" context="#stay" beginRegion="block" />
+ <DetectChar char="}" attribute="Normal Text" context="#stay" endRegion="block" />
+ <RegExpr String="\\([a-zA-Z]+|.)" attribute="Char" context="#stay"/>
+ <DetectChar char="&quot;" attribute="String" context="#pop"/>
+ </context>
+
+ <context name="String" attribute="String" lineEndContext="#stay">
+ <RegExpr String="\\([a-zA-Z]+|.)" attribute="Char" context="#stay"/>
+ <DetectChar char="&quot;" attribute="String" context="#pop"/>
+ </context>
+ </contexts>
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsNormal"/>
+ <itemData name="Entry" defStyleNum="dsKeyword" color="#0000ff"/>
+ <itemData name="Command" defStyleNum="dsFunction"/>
+ <itemData name="Field" defStyleNum="dsDataType"/>
+ <itemData name="Ref Key" defStyleNum="dsOthers"/>
+ <itemData name="String" defStyleNum="dsString"/>
+ <itemData name="Char" defStyleNum="dsChar"/>
+ </itemDatas>
+ </highlighting>
+ <general>
+ <keywords casesensitive="0" weakDeliminator="\" wordWrapDeliminator=",{}[]"/>
+ </general>
+</language>