using UnityEngine;
using System.Collections;

[SelectionBase]
[DisallowMultipleComponent]
public class Unit : MonoBehaviour {

    [SerializeField]
    string faction;
    [SerializeField]
    int maxHeath = 100;
    [SerializeField]
    int health;

    // This function is called on Component Placement/Replacement
    void Reset()
    {

    }

	// Use this for initialization
	void Start ()
    {
	
	}
	
	// Update is called once per frame
	void Update ()
    {
	
	}
}

using UnityEngine;
using System.Collections;

[SelectionBase]
[DisallowMultipleComponent]
public class Unit : MonoBehaviour {

    [SerializeField]
    string faction;
    [SerializeField]
    int maxHeath = 100;
    [SerializeField]
    int health;

    // This function is called on Component Placement/Replacement
    void Reset()
    {

    }

	// Use this for initialization
	void Start ()
    {
	
	}
	
	// Update is called once per frame
	void Update ()
    {
	
	}

    //Called every frame in editor
    void OnDrawGizmos()
    {

    }
}

Test for CRLF line ending bug
Test for CRLF line ending bug

edit: working
