Any update on this? On Unity 2018.1.4f1 with a similar error when building:
Shader error in 'Spine/Sprite/Pixel Lit': syntax error: unexpected token ';' at Assets/Plugins/Spine/spine-unity/Modules/Shaders/Sprite/CGIncludes/SpritePixelLighting.cginc(60) (on metal)
Compiling Vertex program with UNITY_PASS_FORWARDADD POINT
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_RGBM_ENCODING
I also get a duplicate error with (on glcore) at the end instead of (on metal)
EDIT:
Looks like replacing line 60 with this does the trick, although I don't know what it's doing:
UNITY_LIGHT_ATTENUATION(attenuation, input, _LightColor0.rgb);