scc icon indicating copy to clipboard operation
scc copied to clipboard

Template Language Support

Open boyter opened this issue 7 years ago • 1 comments

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.

boyter avatar Nov 07 '18 22:11 boyter

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.

boyter avatar May 06 '19 22:05 boyter