forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Julia syntax highlighting definition for Colorer (http://colorer.…
- Loading branch information
Showing
1 changed file
with
151 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
<?xml version="1.0" encoding="windows-1251"?> | ||
<!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN" | ||
"http://colorer.sf.net/2003/hrc.dtd"> | ||
<hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd"> | ||
<!-- | ||
Julia Syntax description for Colorer | ||
--> | ||
<type name="julia"> | ||
|
||
<import type="def"/> | ||
|
||
<region name="mlString" parent="def:SymbolStrong"/> | ||
<region name="mlComment" parent="def:Comment"/> | ||
<region name="mlSymb" parent="def:Symbol"/> | ||
<region name="mlKeyWord" parent="def:Keyword"/> | ||
<region name="mlStdFunc" parent="def:TypeKeyword"/> | ||
<region name="mlNumb" parent="def:Number"/> | ||
<region name="mlId" parent="def:Var"/> | ||
<region name="mlLabel" parent="def:Label"/> | ||
|
||
<scheme name="julia"> | ||
<!-- Comments --> | ||
<block start="/\#/" end="/$/" scheme="Comment" region="mlComment"/> | ||
<!-- Strings --> | ||
<regexp match="/".*?"/" region0="mlString"/> | ||
<regexp match="/'.*?'/" region0="mlString"/> | ||
<block start="/(\()/" end="/(\))/" scheme="julia" region00="Symbol" region01="PairStart" region10="Symbol" region11="PairEnd"/> | ||
<block start="/(\[)/" end="/(\])/" scheme="julia" region00="Symbol" region01="PairStart" region10="Symbol" region11="PairEnd"/> | ||
<!-- Operator brackets --> | ||
<block start="/(\bfunction\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\bfor\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\bif\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\bwhile\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\bswitch\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\btype\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\bimmutable\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\bmacro\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\bquote\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\bmodule\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<block start="/(\bdo\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/> | ||
<!-- Symbols --> | ||
<keywords region="mlSymb"> | ||
<symb name="+"/> | ||
<symb name="-"/> | ||
<symb name="*"/> | ||
<symb name="/"/> | ||
<symb name="\"/> | ||
<symb name="^"/> | ||
<symb name="'"/> | ||
<symb name="."/> | ||
<symb name="="/> | ||
<symb name="<"/> | ||
<symb name=">"/> | ||
<symb name="~"/> | ||
<symb name="&"/> | ||
<symb name="|"/> | ||
<symb name="["/> | ||
<symb name="]"/> | ||
<symb name="("/> | ||
<symb name=")"/> | ||
<symb name=";"/> | ||
<symb name=":"/> | ||
<symb name="%"/> | ||
<symb name=","/> | ||
<symb name="!"/> | ||
</keywords> | ||
<!-- KeyWords --> | ||
<keywords region="mlKeyWord"> | ||
<word name="function"/> | ||
<word name="global"/> | ||
<word name="for"/> | ||
<word name="end"/> | ||
<word name="while"/> | ||
<word name="if"/> | ||
<word name="else"/> | ||
<word name="elseif"/> | ||
<word name="break"/> | ||
<word name="switch"/> | ||
<word name="case"/> | ||
<word name="otherwise"/> | ||
<word name="try"/> | ||
<word name="catch"/> | ||
<word name="end"/> | ||
<word name="const"/> | ||
<word name="immutable"/> | ||
<word name="import"/> | ||
<word name="importall"/> | ||
<word name="export"/> | ||
<word name="type"/> | ||
<word name="typealias"/> | ||
<word name="return"/> | ||
<word name="true"/> | ||
<word name="false"/> | ||
<word name="macro"/> | ||
<word name="quote"/> | ||
<word name="in"/> | ||
<word name="abstract"/> | ||
<word name="module"/> | ||
<word name="using"/> | ||
<word name="continue"/> | ||
<word name="do"/> | ||
</keywords> | ||
<!-- General types --> | ||
<keywords region="mlStdFunc"> | ||
<word name="Array"/> | ||
<word name="String"/> | ||
<word name="Bool"/> | ||
<word name="Number"/> | ||
<word name="Int"/> | ||
<word name="Integer"/> | ||
<word name="Real"/> | ||
<word name="Complex"/> | ||
<word name="FloatingPoint"/> | ||
<word name="Float64"/> | ||
<word name="Float32"/> | ||
<word name="Int8"/> | ||
<word name="Int16"/> | ||
<word name="Int32"/> | ||
<word name="Int64"/> | ||
<word name="Rational"/> | ||
<word name="AbstractArray"/> | ||
<word name="Unsigned"/> | ||
<word name="Signed"/> | ||
<word name="Uint"/> | ||
<word name="Uint8"/> | ||
<word name="Uint16"/> | ||
<word name="Uint32"/> | ||
<word name="Uint64"/> | ||
<word name="Vector"/> | ||
<word name="AbstractVector"/> | ||
<word name="Matrix"/> | ||
<word name="AbstractMatrix"/> | ||
<word name="Type"/> | ||
<word name="IO"/> | ||
<word name="Any"/> | ||
<word name="ASCIIString"/> | ||
<word name="Union"/> | ||
<word name="Dict"/> | ||
<word name="Function"/> | ||
<word name="SubArray"/> | ||
<word name="Range"/> | ||
<word name="Range1"/> | ||
<word name="Symbol"/> | ||
<word name="Expr"/> | ||
</keywords> | ||
</scheme> | ||
|
||
</type> | ||
</hrc> |