       ]
     deriving_simple:
       name: 'meta.deriving.haskell'
-      match: /(deriving)\s*({className})/
+      match: /\b(deriving)\s*({className})\b/
       captures:
         1: name: 'keyword.other.haskell'
         2: name: 'entity.other.inherited-class.haskell'

      ]
    ,
      name: 'meta.foreign.haskell'
      begin: /{maybeBirdTrack}(\s*)(foreign)\s+(import|export)\b/
      end: /{indentBlockEnd}/
      beginCaptures:
        2: name: 'keyword.other.haskell'

      ]
    ,
      name: 'meta.declaration.class.haskell'
      begin: /\b(class)(?!')\b/
      end: /\b(where)(?!')\b|$/
      beginCaptures:
        1: name: 'storage.type.class.haskell'
      endCaptures:
