Jump to content
ussrlongbow

VIM-SQF: SQF syntax highlight for VIM

Recommended Posts

Hello all,

Just made a little cool thing for my self: a vim syntax for SQF,

The repo now features the script I used to generate syntax sections, added support for functions from mods (following mods are considered: CBA, ACE, CUP, TFAR, ALIVE)

grab here - https://github.com/ussrlongbow/vim-sqf/releases/tag/2017-03-17

report issues here - https://github.com/ussrlongbow/vim-sqf/issues

Version: 2017-03-17

 

Changelog:

 

=== 2017-03-17 ===

  • Added script to generate syntax file for geshi (see repo)
  • Updated to latest dev version

 

=== 1.0 ===

  • Added script I used to generate syntax file (part of it)
  • Support for ACE mod
  • Support for CUP mod
  • Support for TFAR mod
  • Support for ALiVE mod
  • Fixed ftdetect

 

=== 0.1 ===

  • Initial release
  • Support of all commands from stable branch
  • Support of BIS functions
  • Support of CBA functions

 

enjoy ;)

 

Edited by ussrlongbow
version update
  • Like 3

Share this post


Link to post
Share on other sites

 

A syntax highlighter is completely irrelevant for the general community though, so this is probably the best section to post it.

 

Also, how long did you work on this? Seems like a LOT of typing it all out manually :D

Share this post


Link to post
Share on other sites

A syntax highlighter is completely irrelevant for the general community though, so this is probably the best section to post it.

 

Also, how long did you work on this? Seems like a LOT of typing it all out manually :D

I did not type it manually, all lines with commands and functions were generated by a script. 6-7 hours in total (including coffee breaks)

  • Like 1

Share this post


Link to post
Share on other sites

404 :(

While I was seeing dreams, github blocked my account for some reason, I will upload it to onedrive/dropbox shortly

Share this post


Link to post
Share on other sites

I got it from the Armaholic link in the end. Although I don't use normally use vim, I will give this one a try as I'd love to save hours by having this find a missing semi-colon before building the mission, testing it and finding it broken. :)

Share this post


Link to post
Share on other sites

I got it from the Armaholic link in the end. Although I don't use normally use vim, I will give this one a try as I'd love to save hours by having this find a missing semi-colon before building the mission, testing it and finding it broken. :)

there is a little fix which is needed, I have not put ftdetect file to the repo - in cases you use some plugins for vim - it may break the syntax highlight after preprocessors commands.

Share this post


Link to post
Share on other sites

The SQF syntax for Vim has been updated.

 

Changes:

  1. Fixed ftdetect
  2. All commands from version 1.64.138732
  3. Support for functions from mods: ACE,CUP,TFAR,ALIVE
  • Like 1

Share this post


Link to post
Share on other sites

Initial release date: 1991

Still going strong it seems:

table release: 8.1.0000 (17 May 2018; 2 months ago)

 

Does it still look this bad though? It will look really awesome on a CRT monitor though. :rofl:

vim-for-windows.jpg

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×