emacsorphanage / dart-mode

An Emacs mode for the Dart language
GNU General Public License v3.0
15 stars 2 forks source link

Fontify keyword covariant #98

Closed bradyt closed 5 years ago

bradyt commented 5 years ago

There is a keyword covariant that perhaps should be highlighted. From https://www.dartlang.org/guides/language/sound-problems#the-covariant-keyword.

class Cat extends Animal {
  void chase(covariant Mouse x) { ... }
}

Most likely with font-lock-keyword-face, as opposed to font-lock-builtin-face.

bradyt commented 5 years ago

Fixed at https://github.com/bradyt/dart-mode/commit/bbeadaadff3810da2ab7a7159a3d9e268a39ea3d.