mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-02-21 04:08:07 +08:00
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:
parent
b28e7be632
commit
a346df98e7
@ -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': '/' },
|
||||
|
Loading…
x
Reference in New Issue
Block a user