Ensures Haskell's leftAlt isn't part of lexeme.

From the report(s):

    An ordinary comment begins with a sequence of two or more consecutive dashes
    (e.g. --) and extends to the following newline. The sequence of dashes must
    not form part of a legal lexeme. For example, “-->” or “|--” do not begin a
    comment, because both of these are legal lexemes; however “--foo” does start
    a comment.

                            Haskell98:   http://goo.gl/CucLL
                            Haskell2010: http://goo.gl/1OYzN
This commit is contained in:
Bryan Richter 2011-10-25 09:56:54 -07:00
parent b28e7be632
commit a346df98e7

View File

@ -179,7 +179,7 @@ let s:delimiterMap = {
\ 'groovy': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'gsp': { 'left': '<%--', 'right': '--%>', 'leftAlt': '<!--','rightAlt': '-->'},
\ 'gtkrc': { 'left': '#' },
\ 'haskell': { 'left': '{-','right': '-}', 'leftAlt': '--' },
\ 'haskell': { 'left': '{-','right': '-}', 'leftAlt': '-- ' },
\ 'hb': { 'left': '#' },
\ 'h': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'haml': { 'left': '-#', 'leftAlt': '/' },