SourcePawn

1 program Added 2025-11-05T08:26:33Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: SP
Provenance: commit f3dc528c36 · authored 2025-11-05T09:26:33+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

5 sources · pl_id: pl/sourcepawn
LLM (this repo) · 1PldbLinguistPygmentsHyperpolyglot

Extensions claimed by this language

4 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.povpygmentsprimary69.5K files
.splinguistprimary333.5K files
.inclinguistsecondary6.3M files
.incpygmentssecondary6.3M files

Related languages

Spice Lisp (0.17)SPWN (0.17)Source (0.16)Pawn (0.15)SR (0.13)

LLM-contributed programs

Basic Hello World Plugin

Provenance: commit f3dc528c36 · authored 2025-11-05T09:26:33+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.sp · added: 2025-11-05T08:26:33Z
#include <sourcemod>

public Plugin:myinfo =
{
    name = "Hello World",
    author = "AlliedModders LLC",
    description = "Prints a message to the server console.",
    version = "1.0",
    url = "http://www.alliedmods.net/"
};

public OnPluginStart()
{
    PrintToServer("Hello, world!");
}

Real programs from Software Heritage

2 samples mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
nlserror.sp · 127 B · ext .sp · seen 1010× in SWH
via unique-primary
swh:1:cnt:d2e7244f9776e78fec78b6a53723fcb494b2c980;origin=https://github.com/open-watcom/open-watcom-v2;anchor=swh:1:rev:1b9e0ce0d53e289b194120e3e1cba76c6cab867e;path=/bld/hdr/nlserror.sp
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
#ifndef _NLSCMPERROR
 /* For MS compatibility, equal to INT_MAX */
 #define _NLSCMPERROR ((int)((unsigned int)~0 >> 1))
#endif
authid.sp · 1253 B · ext .sp · seen 829× in SWH
via unique-primary
swh:1:cnt:402c7e3bba96acce71b595afe8ca76b47e19e246;origin=https://github.com/open-watcom/open-watcom-v2;anchor=swh:1:rev:1b9e0ce0d53e289b194120e3e1cba76c6cab867e;path=/bld/w32api/include/authid.sp
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
#ifndef _AUTH_IDENTITY_DEFINED
#define _AUTH_IDENTITY_DEFINED

/* Authentication identity flags */
#define SEC_WINNT_AUTH_IDENTITY_ANSI    0x00000001L
#define SEC_WINNT_AUTH_IDENTITY_UNICODE 0x00000002L

/* Authentication identity */
typedef struct _SEC_WINNT_AUTH_IDENTITY_A {
    unsigned char   *User;
    unsigned long   UserLength;
    unsigned char   *Domain;
    unsigned long   DomainLength;
    unsigned char   *Password;
    unsigned long   PasswordLength;
    unsigned long   Flags;
} SEC_WINNT_AUTH_IDENTITY_A;
typedef SEC_WINNT_AUTH_IDENTITY_A   *PSEC_WINNT_AUTH_IDENTITY_A;
typedef struct _SEC_WINNT_AUTH_IDENTITY_W {
    unsigned short  *User;
    unsigned long   UserLength;
    unsigned short  *Domain;
    unsigned long   DomainLength;
    unsigned short  *Password;
    unsigned long   PasswordLength;
    unsigned long   Flags;
} SEC_WINNT_AUTH_IDENTITY_W;
typedef SEC_WINNT_AUTH_IDENTITY_W   *PSEC_WINNT_AUTH_IDENTITY_W;
#ifdef UNICODE
typedef SEC_WINNT_AUTH_IDENTITY_W   SEC_WINNT_AUTH_IDENTITY;
typedef PSEC_WINNT_AUTH_IDENTITY_W  PSEC_WINNT_AUTH_IDENTITY;
#else
typedef SEC_WINNT_AUTH_IDENTITY_A   SEC_WINNT_AUTH_IDENTITY;
typedef PSEC_WINNT_AUTH_IDENTITY_A  PSEC_WINNT_AUTH_IDENTITY;
#endif

#endif /* _AUTH_IDENTITY_DEFINED */

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.inc/2.incpredicates[{"kind": "any", "regexes": ["^public\\s+(?:SharedPlugin(?:\\s+|:)__pl_\\w+\\s*=(?:\\s*\\{)?|(?:void\\s+)?__pl_\\w+_SetNTVOptional\\(\\)(?:\\s*\\{)?)", "^methodmap\\s+\\w+\\s+<\\s+\\w+", "^\\s*MarkNat

Contribute — propose a file extension

Tell us where to find evidence about SourcePawn (mapped to pl/sourcepawn). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/SourcePawn/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← sourcelair-editor sourcetree →