Refactor switch statements to reduce cyclomatic complexity

The concept of cyclomatic complexity is pretty new to me, and when faced with JSHint errors regarding it in the past I've been mostly likely to take the easy way out and skipped over the problem by bumping the maximum complexity. But when faced with a complex switch statement used to add support for directives to Stylperjade 1.2 I decided to solve the problem properly by using a hash table instead.

Read more of Refactor switch statements to reduce cyclomatic complexity