Separate keywords into logical groups for syntax highlighting