kucherenko / jscpd

Copy/paste detector for programming source code.
MIT License
4.63k stars 201 forks source link

Please add ColdFusion / CFML language support #619

Open JamoCA opened 5 months ago

JamoCA commented 5 months ago

Hi! Thank you for your work on this tool! Could you please add ColdFusion / CFML language support?

ColdFusion is the official language from Adobe. It's been in use since 1995 (and has been the core language I've used since '97.) https://helpx.adobe.com/coldfusion/user-guide.html

Lucee CFML is an alternative open-source CFML platform and has some tags & functions that differ slightly from Adobe's. https://docs.lucee.org/

kucherenko commented 5 months ago

thank you, will investigate

akashbavlecha commented 4 months ago

Yeah, it will be a great edition. A lot of ColdFusion programmers I know will certainly benefit from this.

JamoCA commented 4 months ago

What's required in order for a language to be supported by jscpd? (Is there any documentation regarding this?)

I see a list of languages here. They all appear to reference the RePrism project. https://github.com/kucherenko/jscpd/blob/master/packages/tokenizer/src/grammar-loader.ts

The RePrism project is a tweaked version of PrismJS. A "cfscript" language file (which support script syntax) was merged back in early 2021. https://github.com/PrismJS/prism/blob/master/components/prism-cfscript.js

Does the RePrism project (which hasn't push any updates in the last 6 years) need to be requested to include the new cfscript language file?

Thanks.