Closed Tornamic closed 4 months ago
The .inc
extention makes things difficult as it already maps to three languages:
» cloc --show-ext | grep ^inc
inc -> PHP/Pascal/Fortran
Adding Pawn means updating subroutine php_pascal_or_fortran()
that attempts to distinguish Pawn code from these three. Can you recommend heuristics for this?
some unique and popular expressions
#pragma
#error
#define
#endinput
Float:
bool:
new
static
stock
forward
#include
#undef
defined
If you want an unsupported language added, provide:
//...
or/*...*/
For other enhancements: Give a concise description of what you want cloc to be able to do.