detects file endings, currently only lua