Skip to content

Instantly share code, notes, and snippets.

@eriwen
Created April 13, 2018 18:42
Show Gist options
  • Save eriwen/ff6dc647865d3a65e7972e782a57e1fc to your computer and use it in GitHub Desktop.
Save eriwen/ff6dc647865d3a65e7972e782a57e1fc to your computer and use it in GitHub Desktop.
Kotlin syntax highlighting config for xslthl
<?xml version="1.0" encoding="UTF-8"?>
<!--
Syntax highlighting definition for Kotlin
xslthl - XSLT Syntax Highlighting
http://sourceforge.net/projects/xslthl/
Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
Michal Molhanec <mol1111 at users.sourceforge.net>
Jirka Kosek <kosek at users.sourceforge.net>
Michiel Hendriks <elmuerte at users.sourceforge.net>
See https://kotlinlang.org/docs/reference/keyword-reference.html
-->
<highlighters>
<highlighter type="multiline-comment">
<start>/**</start>
<end>*/</end>
<style>doccomment</style>
</highlighter>
<highlighter type="multiline-comment">
<start>/*</start>
<end>*/</end>
</highlighter>
<highlighter type="oneline-comment">//</highlighter>
<highlighter type="string">
<string>"</string>
<escape>\</escape>
</highlighter>
<highlighter type="string">
<string>`</string>
<escape>\</escape>
</highlighter>
<highlighter type="annotation">
<start>@</start>
<valueStart>(</valueStart>
<valueEnd>)</valueEnd>
</highlighter>
<highlighter type="hexnumber">
<prefix>0x</prefix>
<ignoreCase />
</highlighter>
<highlighter type="number">
<point>.</point>
<exponent>e</exponent>
<suffix>f</suffix>
<suffix>d</suffix>
<suffix>l</suffix>
<ignoreCase />
</highlighter>
<highlighter type="keywords">
<keyword>as</keyword>
<keyword>as?</keyword>
<keyword>break</keyword>
<keyword>by</keyword>
<keyword>catch</keyword>
<keyword>class</keyword>
<keyword>continue</keyword>
<keyword>constructor</keyword>
<keyword>delegate</keyword>
<keyword>do</keyword>
<keyword>dynamic</keyword>
<keyword>else</keyword>
<keyword>false</keyword>
<keyword>field</keyword>
<keyword>file</keyword>
<keyword>finally</keyword>
<keyword>for</keyword>
<keyword>fun</keyword>
<keyword>get</keyword>
<keyword>if</keyword>
<keyword>import</keyword>
<keyword>in</keyword>
<keyword>!in</keyword>
<keyword>init</keyword>
<keyword>interface</keyword>
<keyword>is</keyword>
<keyword>!is</keyword>
<keyword>it</keyword>
<keyword>null</keyword>
<keyword>object</keyword>
<keyword>package</keyword>
<keyword>param</keyword>
<keyword>property</keyword>
<keyword>receiver</keyword>
<keyword>return</keyword>
<keyword>set</keyword>
<keyword>setparam</keyword>
<keyword>super</keyword>
<keyword>this</keyword>
<keyword>throw</keyword>
<keyword>true</keyword>
<keyword>try</keyword>
<keyword>typealias</keyword>
<keyword>val</keyword>
<keyword>var</keyword>
<keyword>when</keyword>
<keyword>where</keyword>
<keyword>while</keyword>
</highlighter>
<highlighter type="word">
<word>abstract</word>
<word>actual</word>
<word>annotation</word>
<word>companion</word>
<word>const</word>
<word>crossinline</word>
<word>data</word>
<word>enum</word>
<word>expect</word>
<word>external</word>
<word>final</word>
<word>infix</word>
<word>inline</word>
<word>inner</word>
<word>internal</word>
<word>lateinit</word>
<word>noinline</word>
<word>open</word>
<word>operator</word>
<word>out</word>
<word>override</word>
<word>private</word>
<word>protected</word>
<word>public</word>
<word>reified</word>
<word>sealed</word>
<word>suspend</word>
<word>tailrec</word>
<word>vararg</word>
</highlighter>
</highlighters>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment