Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pawn language #843

Closed
Tornamic opened this issue Jul 12, 2024 · 2 comments
Closed

Pawn language #843

Tornamic opened this issue Jul 12, 2024 · 2 comments

Comments

@Tornamic
Copy link

If you want an unsupported language added, provide:

For other enhancements:
Give a concise description of what you want cloc to be able to do.

@AlDanial
Copy link
Owner

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?

@Tornamic
Copy link
Author

some unique and popular expressions

#pragma
#error
#define
#endinput
Float:
bool:
new
static
stock
forward
#include
#undef
defined

AlDanial added a commit that referenced this issue Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants