From 82bc32084376a2141004d18f771ef377742487c6 Mon Sep 17 00:00:00 2001 From: Giampaolo Falqui Date: Sat, 4 Jan 2014 01:39:49 +0100 Subject: [PATCH] Add PAWN language --- lib/linguist/languages.yml | 8 + samples/PAWN/a_samp.inc | 361 +++++++++++++++++++++++++ samples/PAWN/grandlarc.pwn | 520 +++++++++++++++++++++++++++++++++++++ 3 files changed, 889 insertions(+) create mode 100644 samples/PAWN/a_samp.inc create mode 100644 samples/PAWN/grandlarc.pwn diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 0a658e4e..df47e347 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1172,6 +1172,14 @@ Oxygene: color: "#5a63a3" primary_extension: .oxygene +PAWN: + type: programming + lexer: C++ + color: "#dbb284" + primary_extension: .pwn + extensions: + - .inc + PHP: type: programming ace_mode: php diff --git a/samples/PAWN/a_samp.inc b/samples/PAWN/a_samp.inc new file mode 100644 index 00000000..c8f53d4c --- /dev/null +++ b/samples/PAWN/a_samp.inc @@ -0,0 +1,361 @@ +/* SA-MP Functions + * + * (c) Copyright 2005-2012, SA-MP Team + * + */ + +#if defined _samp_included + #endinput +#endif +#define _samp_included +#pragma library samp + +#pragma tabsize 4 +// Ignores warning 217 for properly indented PAWNO code +// It's tab size is 4 and often uses 4 spaces instead, PAWNCC's is 8 + +#include +#include +#include +#include +#include