emacsorphanage / dart-mode

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

Fontify external method declarations #92

Open bradyt opened 5 years ago

bradyt commented 5 years ago

Method declarations are not being highlighted in the following.

class DateTime implements Comparable<DateTime> {
  external DateTime add(Duration duration);
  external DateTime subtract(Duration duration);
}
bradyt commented 5 years ago

I'm tempted to do this by simply checking that closing paren is followed by semicolon, and checking that there is not an equals symbol between beginning of line and symbol.

bradyt commented 5 years ago

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