jcollard / elm-mode

Elm mode for emacs
GNU General Public License v3.0
375 stars 67 forks source link

Highlight delimiters of multiline lists and records for better scanability #37

Closed ento closed 9 years ago

ento commented 9 years ago

The style guide favors comma-first delimiting for multiline lists and records. It has advantages in ease of editing and diffing, but I've found it to be visually crammed and a little difficult to scan (although I'm familiar with the style from NPM's comma first principle).

This patch makes the delimiters visually distinct from the content of the list/record:

before

test_elm

after

test_elm

(theme: monokai)

Suggestions/oppositions?

Bogdanp commented 9 years ago

Looks good to me. Thanks!