diff --git a/lib/linguist/samples.json b/lib/linguist/samples.json index 13957d4e..fccacf37 100644 --- a/lib/linguist/samples.json +++ b/lib/linguist/samples.json @@ -541,7 +541,8 @@ ".scss" ], "SQF": [ - ".sqf" + ".sqf", + ".hqf" ], "SQL": [ ".prc", diff --git a/samples/SQF/macros.hqf b/samples/SQF/macros.hqf new file mode 100644 index 00000000..6f53296c --- /dev/null +++ b/samples/SQF/macros.hqf @@ -0,0 +1,19 @@ +#include + +#define SET(VAR,VALUE) private #VAR; VAR = VALUE; +#define CONV(VAR,ARRAY,POOL) VAR = ARRAY select (POOL find VAR); + +#define ALL_HITPOINTS_MAN [ \ + "HitHead", "HitBody", \ + "HitLeftArm", "HitRightArm", \ + "HitLeftLeg","HitRightLeg" \ +] + +#define ALL_HITPOINTS_VEH [ \ + "HitBody", "HitHull", "HitEngine", "HitFuel", \ + "HitTurret", "HitGun", \ + "HitLTrack", "HitRTrack", \ + "HitLFWheel", "HitRFWheel", "HitLF2Wheel", "HitRF2Wheel", "HitLMWheel", "HitRMWheel", "HitLBWheel", "HitRBWheel", \ + "HitAvionics", "HitHRotor", "HitVRotor", \ + "HitRGlass", "HitLGlass", "HitGlass1", "HitGlass2", "HitGlass3", "HitGlass4", "HitGlass5", "HitGlass6" \ +]