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="10" 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="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"> | ||
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 519 Lines • ▼ Show 20 Line(s) | 458 | <contexts> | |||
531 | </context> | 531 | </context> | ||
532 | <context attribute="Normal" lineEndContext="#pop" name="import"> | 532 | <context attribute="Normal" lineEndContext="#pop" name="import"> | ||
533 | <keyword attribute="Keyword" context="#stay" String="import_keywords" /> | 533 | <keyword attribute="Keyword" context="#stay" String="import_keywords" /> | ||
534 | <RegExpr attribute="Function" context="#stay" String="([A-Z][a-zA-Z0-9_']*\.)*[a-z][a-zA-Z0-9_']*" /> | 534 | <RegExpr attribute="Function" context="#stay" String="([A-Z][a-zA-Z0-9_']*\.)*[a-z][a-zA-Z0-9_']*" /> | ||
535 | <RegExpr attribute="Type" context="#stay" String="([A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*" /> | 535 | <RegExpr attribute="Type" context="#stay" String="([A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*" /> | ||
536 | 536 | | |||
537 | <RegExpr attribute="Pragma" context="#stay" String="\{-#.*#-\}"/> | 537 | <RegExpr attribute="Pragma" context="#stay" String="\{-#.*#-\}"/> | ||
538 | <RegExpr attribute="Comment" context="comments" String="\{-[^#]?" /> | 538 | <RegExpr attribute="Comment" context="comments" String="\{-[^#]?" /> | ||
539 | <RegExpr attribute="Comment" context="comment" String="--[^\-!#\$%&\*\+/<=>\?\@\^\|~\.:].*$" /> | 539 | <RegExpr attribute="Comment" context="comment" String="--([^\-!#\$%&\*\+/<=>\?\@\^\|~\.:].*)?$" /> | ||
540 | </context> | 540 | </context> | ||
541 | 541 | | |||
542 | <!-- Haddock --> | 542 | <!-- Haddock --> | ||
543 | <context attribute="Comment" lineEndContext="#stay" name="Haddock"> | 543 | <context attribute="Comment" lineEndContext="#stay" name="Haddock"> | ||
544 | <RegExpr attribute="Haddock Hyperlink" context="#stay" String="'([A-Z][a-zA-Z0-9_']*\.)*[a-z_][a-zA-Z0-9_']*'" /> | 544 | <RegExpr attribute="Haddock Hyperlink" context="#stay" String="'([A-Z][a-zA-Z0-9_']*\.)*[a-z_][a-zA-Z0-9_']*'" /> | ||
545 | <RegExpr attribute="Haddock Module" context="#stay" String=""([A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*"" /> | 545 | <RegExpr attribute="Haddock Module" context="#stay" String=""([A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*"" /> | ||
546 | <RegExpr attribute="Haddock Emphasis" context="Start Haddock Emphasis" lookAhead="true" String="/.*/" /> | 546 | <RegExpr attribute="Haddock Emphasis" context="Start Haddock Emphasis" lookAhead="true" String="/.*/" /> | ||
547 | <RegExpr attribute="Haddock Bold" context="Start Haddock Bold" lookAhead="true" String="__.*__" /> | 547 | <RegExpr attribute="Haddock Bold" context="Start Haddock Bold" lookAhead="true" String="__.*__" /> | ||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |