Generic comment parser/serializer for css, js