|
56 | 56 |
|
57 | 57 | (ert-deftest haskell-c2hs-enum-hook ()
|
58 | 58 | "C2HS enum hook"
|
| 59 | + ;; note that this has multiline constructs that do not work reliably at this point |
| 60 | + :expected-result :failed |
59 | 61 | (check-properties
|
60 | 62 | '("{#enum v4l2_quantization as Quantization"
|
61 | 63 | " { V4L2_QUANTIZATION_DEFAULT as Default"
|
|
83 | 85 |
|
84 | 86 | (ert-deftest haskell-c2hs-enum-define-hook ()
|
85 | 87 | "C2HS enum define hook"
|
| 88 | + ;; note that this has multiline constructs that do not work reliably at this point |
| 89 | + :expected-result :failed |
86 | 90 | (check-properties
|
87 | 91 | '("{#enum define MMapProtectionFlag"
|
88 | 92 | " { PROT_READ as ProtRead"
|
|
119 | 123 | "sin = {#call pure sin as \"_sin\"#}")
|
120 | 124 | '(("sin" "w" haskell-definition-face)
|
121 | 125 | ("::" t haskell-operator-face)
|
122 |
| - ("Float" "w" haskell-constructor-face) |
| 126 | + ("Float" "w" haskell-type-face) |
123 | 127 | ("->" t haskell-operator-face)
|
124 |
| - ("Float" "w" haskell-constructor-face) |
| 128 | + ("Float" "w" haskell-type-face) |
125 | 129 | ("sin" "w" haskell-definition-face)
|
126 | 130 | ("=" t haskell-operator-face)
|
127 | 131 | ("{#" t haskell-c2hs-hook-pair-face)
|
|
173 | 177 | "visualGetType (Visual vis) = liftM cToEnum $ {#get Visual->type#} vis")
|
174 | 178 | '(("visualGetType" "w" haskell-definition-face)
|
175 | 179 | ("::" t haskell-operator-face)
|
176 |
| - ("Visual" "w" haskell-constructor-face) |
| 180 | + ("Visual" "w" haskell-type-face) |
177 | 181 | ("->" t haskell-operator-face)
|
178 |
| - ("IO" "w" haskell-constructor-face) |
179 |
| - ("VisualType" "w" haskell-constructor-face) |
| 182 | + ("IO" "w" haskell-type-face) |
| 183 | + ("VisualType" "w" haskell-type-face) |
180 | 184 | ("visualGetType" "w" haskell-definition-face)
|
181 | 185 | ("Visual" "w" haskell-constructor-face)
|
182 | 186 | ("=" t haskell-operator-face)
|
|
246 | 250 | '("{# class GtkObjectClass => GtkWidgetClass GtkWidget #}")
|
247 | 251 | '(("{#" t haskell-c2hs-hook-pair-face)
|
248 | 252 | ("class" "w" haskell-c2hs-hook-name-face)
|
249 |
| - ("GtkObjectClass" "w" haskell-constructor-face) |
| 253 | + ("GtkObjectClass" "w" haskell-type-face) |
250 | 254 | ("=>" t haskell-operator-face)
|
251 |
| - ("GtkWidgetClass" "w" haskell-constructor-face) |
252 |
| - ("GtkWidget" "w" haskell-constructor-face) |
| 255 | + ("GtkWidgetClass" "w" haskell-type-face) |
| 256 | + ("GtkWidget" "w" haskell-type-face) |
253 | 257 | ("#}" t haskell-c2hs-hook-pair-face))
|
254 | 258 | 'haskell-c2hs-mode))
|
255 | 259 |
|
|
260 | 264 | "gIntAlign = {#alignof gint#}")
|
261 | 265 | '(("gIntAlign" "w" haskell-definition-face)
|
262 | 266 | ("::" t haskell-operator-face)
|
263 |
| - ("Int" "w" haskell-constructor-face) |
| 267 | + ("Int" "w" haskell-type-face) |
264 | 268 | ("gIntAlign" "w" haskell-definition-face)
|
265 | 269 | ("=" t haskell-operator-face)
|
266 | 270 | ("{#" t haskell-c2hs-hook-pair-face)
|
|
0 commit comments