scc
scc copied to clipboard
Template Language Support
Languages like Mako, Jinja etc... have the ability to break into code. However scc is unaware of this and considers the whole thing to be code. Need to have some sort of system that allows toggling between code and comment mode, IE invert the usual case of expecting code that can go into a comment and reverse it.
A quick hack to resolve this might be to have a flag that starts the code in comment mode by default, but that when this happens continue to do the complexity checks anyway to find the template conditionals.
With the changes made in https://github.com/boyter/scc/pull/76 this should be easier to implement now. Need to consider it with those changes in mind.