-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Added SQF language #2079
Added SQF language #2079
Conversation
You may use anything from https://github.com/CBATeam/CBA_A3 or https://github.com/acemod/ACE3 for examples. :) In addition, GitHub's linguist syntax for SQF may be taken as a reference to keep it consistent. Source for it can be found at https://github.com/JonBons/Sublime-SQF-Language. Very nice to see this! It was brought up in ACE Slack and I am sure some developers will comment on here and help out! |
Should have read the doc instead of mindlessly copying every entry...
@jonpas and @BaerMitUmlaut Thank you for reviewing my PR and given me such fine example code! I actually used https://github.com/JonBons/Sublime-SQF-Language as reference, so this shouldn't stray too far from it. |
I have a few questions regarding keywords:
|
|
|
|
It is a grey area, neither of those are actually functions nor keywords (macros, which are all upper-case are), but are scripting commands, functions is something you can write with SQF, such as I agree that Sublime-SQF-Language is not perfect either, maybe @JonBons can pitch in and we can streamline both. |
Because that command doesn't do anything.
That one is used to run SQS scripts, which are basically deprecated since 2002. That one does actually do something though.
You must think we're maniacs. |
Alright, I added the remaining "keywords". |
The current list looks good to me 👍. |
As for my repo, I generated the first version of it programmatically and I've never actually spent time cleaning it up but at the moment I don't have any time to take a look into it and I won't for the foreseeable future. |
This adds support for the SQF language. https://community.bistudio.com/wiki/SQF_syntax
This resolves #2067.
There is no spec for this language, but there is a wiki from the Amra 3 devs.
Here are the most relevant pages: syntax, numbers, strings, control structures, commands, functions, operators, data types, preprocessing, and examples.
I wasn't able to find any copyright-free SQF code and from my understanding, the entire wiki is owned by Bohemia Interactive. So if somebody has an example, I can use, please tell me.
Example
source