Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/haskell.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd"> | 2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
3 | <language name="Haskell" version="11" kateversion="3.4" section="Sources" extensions="*.hs;*.chs;*.hs-boot" mimetype="text/x-haskell" author="Nicolas Wu (zenzike@gmail.com)" license="LGPL" indenter="haskell" style="haskell"> | 3 | <language name="Haskell" version="12" kateversion="3.4" section="Sources" extensions="*.hs;*.chs;*.hs-boot" mimetype="text/x-haskell" author="Nicolas Wu (zenzike@gmail.com)" license="LGPL" indenter="haskell" style="haskell"> | ||
4 | <highlighting> | 4 | <highlighting> | ||
5 | <list name="keywords"> | 5 | <list name="keywords"> | ||
6 | <item>case</item> | 6 | <item>case</item> | ||
7 | <item>class</item> | 7 | <item>class</item> | ||
8 | <item>data</item> | 8 | <item>data</item> | ||
9 | <item>deriving</item> | 9 | <item>deriving</item> | ||
10 | <item>do</item> | 10 | <item>do</item> | ||
11 | <item>else</item> | 11 | <item>else</item> | ||
▲ Show 20 Lines • Show All 454 Lines • ▼ Show 20 Line(s) | 459 | <context attribute="Normal" lineEndContext="#stay" name="code"> | |||
466 | <DetectChar attribute="C Preprocessor" context="C Preprocessor" char="#" column="0"/> | 466 | <DetectChar attribute="C Preprocessor" context="C Preprocessor" char="#" column="0"/> | ||
467 | 467 | | |||
468 | <keyword attribute="Keyword" context="#stay" String="keywords" /> | 468 | <keyword attribute="Keyword" context="#stay" String="keywords" /> | ||
469 | <keyword attribute="Function Prelude" context="#stay" String="prelude function" /> | 469 | <keyword attribute="Function Prelude" context="#stay" String="prelude function" /> | ||
470 | <keyword attribute="Type Prelude" context="#stay" String="prelude type" /> | 470 | <keyword attribute="Type Prelude" context="#stay" String="prelude type" /> | ||
471 | <keyword attribute="Data Prelude" context="#stay" String="prelude data" /> | 471 | <keyword attribute="Data Prelude" context="#stay" String="prelude data" /> | ||
472 | <keyword attribute="Class Prelude" context="#stay" String="prelude class" /> | 472 | <keyword attribute="Class Prelude" context="#stay" String="prelude class" /> | ||
473 | 473 | | |||
474 | <RegExpr attribute="Special" context="#stay" String="(::|=>|\->|<\-)" /> | 474 | <RegExpr attribute="Special" context="#stay" String="(::|=>|\->|<\-|=)(?![\-!#\$%&\*\+/<=>\?\@\^\|~\.:])" /> | ||
475 | <AnyChar attribute="Special" context="#stay" String="∷⇒→←∀∃" /> | 475 | <AnyChar attribute="Special" context="#stay" String="∷⇒→←∀∃" /> | ||
476 | <RegExpr attribute="Signature" context="#stay" String="\s*[a-z_][a-zA-Z0-9_']*\s*(?=::([^\-!#\$%&\*\+/<=>\?\@\^\|~\.:]|$))" /> | 476 | <RegExpr attribute="Signature" context="#stay" String="\s*[a-z_][a-zA-Z0-9_']*\s*(?=::([^\-!#\$%&\*\+/<=>\?\@\^\|~\.:]|$))" /> | ||
477 | <RegExpr attribute="Signature" context="#stay" String="\s*(\([\-!#\$%&\*\+/<=>\?\@\^\|~\.:]*\))*\s*(?=::[^\-!#\$%&\*\+/<=>\?\@\^\|~\.:])" /> | 477 | <RegExpr attribute="Signature" context="#stay" String="\s*(\([\-!#\$%&\*\+/<=>\?\@\^\|~\.:]*\))*\s*(?=::[^\-!#\$%&\*\+/<=>\?\@\^\|~\.:])" /> | ||
478 | <RegExpr attribute="Function" context="#stay" String="([A-Z][a-zA-Z0-9_']*\.)*[a-z_][a-zA-Z0-9_']*" /> | 478 | <RegExpr attribute="Function" context="#stay" String="([A-Z][a-zA-Z0-9_']*\.)*[a-z_][a-zA-Z0-9_']*" /> | ||
479 | <RegExpr attribute="Operator" context="#stay" String="([A-Z][a-zA-Z0-0_']*\.)*[\-!#\$%&\*\+/<=>\?\@\^\|~\.:]+" /> | 479 | <RegExpr attribute="Operator" context="#stay" String="([A-Z][a-zA-Z0-0_']*\.)*[\-!#\$%&\*\+/<=>\?\@\^\|~\.:]+" /> | ||
480 | <RegExpr attribute="Type" context="#stay" String="([A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*" /> | 480 | <RegExpr attribute="Type" context="#stay" String="([A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*" /> | ||
481 | <RegExpr attribute="Type" context="#stay" String="'(?![A-Z]')([A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*" /> | 481 | <RegExpr attribute="Type" context="#stay" String="'(?![A-Z]')([A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*" /> | ||
482 | 482 | | |||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |