I've got some really "fugly" code in one of my views:
<select size="10" name="<%= p %>[]" <%= 'multiple="multiple"' if filter_type.multi_select %>>
<%= options_for_select(filter_type.filters.published.collect {|f| f.name_and_version, "#{f.id}"}, params[p]) %>
</select>
The starts of the second scriptlet (for adding a multiple attribute onto the select) is highlighted as an error, as is the closing select tag.
The view needs to be tidied up, BUT, it is valid syntax I believe.