Permalink
Browse files

don't highlight top-level TH, fixes #39, closes #33

  • Loading branch information...
dag committed Nov 26, 2012
1 parent 4451e85 commit 3be347f367cf62854162bf739fb227b992299212
Showing with 0 additions and 8 deletions.
  1. +0 −3 README.md
  2. +0 −3 autoload/vim2hs/haskell/syntax.vim
  3. +0 −2 test/bindings.hs
View
@@ -70,9 +70,6 @@ This screenshot showcases a number of nice features:
* In function definitions, the name of the function is highlighted
differently from its arguments, even if the equal sign is on another line
(most or all other syntax highlighters get this wrong).
-* Template Haskell declaration splices are highlighted as pre-processor
- macros, without conflicting with the highlighting of function definitions
- or data declarations etc (again, most others get this wrong)
* Top-level definitions such as functions, classes and instances and data
declarations form folds, as you can see in the `foldcolumn` to the left
of the line numbers. Closed folds are given a consistent `foldtext`
@@ -289,8 +289,6 @@ endfunction "}}}
function! vim2hs#haskell#syntax#th() " {{{
- syntax match hsTHMacro "^\k\+\%(.*=\|.*::\)\@!"
-
syntax region hsTHContent matchgroup=hsTHSplice
\ start="\$(" end=")"
\ contains=TOP
@@ -299,7 +297,6 @@ function! vim2hs#haskell#syntax#th() " {{{
\ start="\[\$\?[edtp]\?|" end="|\]"
\ contains=TOP
- highlight! link hsTHMacro Macro
highlight! link hsTHSplice Macro
highlight! link hsTHQuote Delimiter
endfunction " }}}
View
@@ -11,8 +11,6 @@ data Something
= Something
| Other
-makeLens ''Something
-
isLarge :: (Ord a, Num a) => a -> String
isLarge x
| x > 10 = "yep"

0 comments on commit 3be347f

Please sign in to comment.