Syntax Extension to change indentation (Space vs Tab)

Some language only allows certain type of indentation. It would be great if the syntax extension can enforce it