mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-13 04:03:46 -05: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:
@@ -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': '/' },
|
||||
|
||||
Reference in New Issue
Block a user