@@ -70,7 +70,7 @@ By default these are:
70
70
'(" name" " version" " cabal-version" " license" " license-file" " copyright"
71
71
" author" " maintainer" " stability" " homepage" " package-url" " synopsis"
72
72
" description" " category" " tested-with" " build-depends" " data-files"
73
- " extra-source-files" " extra-tmp-files" ))
73
+ " extra-source-files" " extra-tmp-files" " import " ))
74
74
75
75
(defconst haskell-cabal-library-fields
76
76
; ; Extracted with (haskell-cabal-extract-fields-from-doc "library")
@@ -102,7 +102,7 @@ By default these are:
102
102
'((" ^[ \t ]*--.*" . font-lock-comment-face )
103
103
(" ^ *\\ ([^ \t :]+\\ ):" (1 font-lock-keyword-face ))
104
104
(" ^\\ (Library\\ )[ \t ]*\\ ({\\ |$\\ )" (1 font-lock-keyword-face ))
105
- (" ^\\ (Executable\\ |Test-Suite\\ |Benchmark\\ )[ \t ]+\\ ([^\n \t ]*\\ )"
105
+ (" ^\\ (Executable\\ |Test-Suite\\ |Benchmark\\ |Common \\ )[ \t ]+\\ ([^\n \t ]*\\ )"
106
106
(1 font-lock-keyword-face ) (2 font-lock-function-name-face ))
107
107
(" ^\\ (Flag\\ )[ \t ]+\\ ([^\n \t ]*\\ )"
108
108
(1 font-lock-keyword-face ) (2 font-lock-constant-face ))
@@ -153,6 +153,7 @@ it from list if one of the following conditions are hold:
153
153
(define-key map (kbd " M-g l" ) 'haskell-cabal-goto-library-section )
154
154
(define-key map (kbd " M-g e" ) 'haskell-cabal-goto-executable-section )
155
155
(define-key map (kbd " M-g b" ) 'haskell-cabal-goto-benchmark-section )
156
+ (define-key map (kbd " M-g o" ) 'haskell-cabal-goto-common-section )
156
157
(define-key map (kbd " M-g t" ) 'haskell-cabal-goto-test-suite-section )
157
158
map))
158
159
@@ -1009,6 +1010,9 @@ Source names from main-is and c-sources sections are left untouched
1009
1010
(interactive )
1010
1011
(haskell-cabal-goto-section-type " benchmark" ))
1011
1012
1013
+ (defun haskell-cabal-goto-common-section ()
1014
+ (interactive )
1015
+ (haskell-cabal-goto-section-type " common" ))
1012
1016
1013
1017
1014
1018
(defun haskell-cabal-line-entry-column ()
0 commit comments