vim-pico8-syntax
vim-pico8-syntax copied to clipboard
Syntax file for Pico-8
If you merge this *after* you merge the PR from @lfmet for fixed highlighting, you should be good to go with the shorthand if's. I have the changes in my...
Tries to fix #4. Works with: ``` function hello() if world == '!' then something() end end function a() if (l) 1 end if f then if (m) x+=1 end...
Ok, I copied the file, but a lot of it seemed specific to xolox plugins so I stripped it out and started from scratch. Take a look at let me...
PICO-8 supports a shorthand for if/then statements. ``` if (foo=="foo") then x+=1 end ``` is the same as ``` if (foo=="foo") x+=1 ``` When I use the shorthand, vim flags...
The idea is to borrow the lua ftplugin from: https://github.com/xolox/vim-lua-ftplugin/blob/master/ftplugin/lua.vim And tack on the pico8 special sauce.