Merge lp:~gcrosswhite/leo-editor/fix-haskell-support into lp:leo-editor/old-trunk

Proposed by Gregory Crosswhite
Status: Merged
Merged at revision: not available
Proposed branch: lp:~gcrosswhite/leo-editor/fix-haskell-support
Merge into: lp:leo-editor/old-trunk
Diff against target: None lines
To merge this branch: bzr merge lp:~gcrosswhite/leo-editor/fix-haskell-support
Reviewer Review Type Date Requested Status
The Leo editor team Pending
Review via email: mp+10832@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Gregory Crosswhite (gcrosswhite) wrote :

Contains a fix that allows Leo to properly support Haskell.

At the moment tangled Haskell sources do not compile; the fix is to force the tangler to use "-- " (note the space) instead of "--" for the line comment marker. This patch contains an update to the language deliminator dictionary which uses the "underscore hack" to accmplish this.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'leo/core/leoApp.py'
2--- leo/core/leoApp.py 2009-08-12 21:52:50 +0000
3+++ leo/core/leoApp.py 2009-08-28 05:46:38 +0000
4@@ -128,6 +128,7 @@
5 "forth" : "\\_ _(_ _)", # Use the "REM hack"
6 "fortran" : "C",
7 "fortran90" : "!",
8+ "haskell" : "--_ {-_ _-}",
9 "html" : "<!-- -->",
10 "ini" : ";",
11 "java" : "// /* */",
12@@ -173,6 +174,7 @@
13 "forth" : "forth",
14 "fortran" : "f",
15 "fortran90" : "f90",
16+ "haskell" : "hs",
17 "html" : "html",
18 "ini" : "ini",
19 "java" : "java",
20@@ -220,6 +222,7 @@
21 "f90" : "fortran90",
22 "h" : "c",
23 "html" : "html",
24+ "hs" : "haskell",
25 "ini" : "ini",
26 "java" : "java",
27 "ksh" : "kshell", # Leo 4.5.1.

Subscribers

People subscribed via source and target branches

to status/vote changes: