I had the same issue using web-mode.  Reverting.
Extracting a generic list manipulation function to the proper place.