Fix haskell syntax for empty imports:
4002046b884785e56890e45e355a95cbeca43b75
import A.B.C ()
1 parent
46c74f35
.vim/syntax/haskell.vim
+1 -1
| 78 | 78 | syn keyword hsBoolean True False |
|
| 79 | 79 | ||
| 80 | 80 | syn region hsPackageString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial contained |
|
| 81 | 81 | sy match hsModuleName excludenl "\([A-Z]\w*\.\?\)*" contained |
|
| 82 | 82 | ||
| 83 | - | sy match hsImport "\<import\>\s\+\(qualified\s\+\)\?\(\<\(\w\|\.\)*\>\)" |
|
| 83 | + | sy match hsImport "\<import\>\s\+\(qualified\s\+\)\?\(\<\(\w\|\.\)*\>\)\s*\(()\)\?" |
|
| 84 | 84 | \ contains=hsModuleName,hsImportLabel |
|
| 85 | 85 | \ nextgroup=hsImportParams,hsImportIllegal skipwhite |
|
| 86 | 86 | sy keyword hsImportLabel import qualified contained |
|
| 87 | 87 | ||
| 88 | 88 | sy match hsImportIllegal "\w\+" contained |