You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

53 line
1.6 KiB

  1. """
  2. """ Experimental Lol Engine Vim plugin
  3. """
  4. """ More info here:
  5. """ http://lol.zoy.org/wiki/dev/setup/vim
  6. """
  7. "
  8. "
  9. """ XXX: intentionally no empty lines because some versions of Vim
  10. """ for Windows will be unable to parse them if a version control
  11. """ system has added CRLF line endings.
  12. "
  13. "
  14. """
  15. """ Add syntax highlighting for new C++ types
  16. """
  17. "
  18. " some custom base types
  19. au Syntax cpp
  20. \ syn keyword cType
  21. \ half ldouble lldouble real uint
  22. "
  23. " GLSL types and the Lol Engine extensions
  24. au Syntax cpp
  25. \ syn keyword cType
  26. \ f16vec2 f16cmplx f16vec3 f16vec4 f16quat f16mat2 f16mat3 f16mat4
  27. \ vec2 cmplx vec3 vec4 quat mat2 mat3 mat4
  28. \ f64vec2 f64cmplx f64vec3 f64vec4 f64quat f64mat2 f64mat3 f64mat4
  29. \ f128vec2 f128cmplx f128vec3 f128vec4 f128quat f128mat2 f128mat3 f128mat4
  30. \ rvec2 rcmplx rvec3 rvec4 rquat rmat2 rmat3 rmat4
  31. \
  32. \ i8vec2 i8cmplx i8vec3 i8vec4 i8quat i8mat2 i8mat3 i8mat4
  33. \ u8vec2 u8cmplx u8vec3 u8vec4 u8quat u8mat2 u8mat3 u8mat4
  34. \ i16vec2 i16cmplx i16vec3 i16vec4 i16quat i16mat2 i16mat3 i16mat4
  35. \ u16vec2 u16cmplx u16vec3 u16vec4 u16quat u16mat2 u16mat3 u16mat4
  36. \ ivec2 icmplx ivec3 ivec4 iquat imat2 imat3 imat4
  37. \ uvec2 ucmplx uvec3 uvec4 uquat umat2 umat3 umat4
  38. \ i64vec2 i64cmplx i64vec3 i64vec4 i64quat i64mat2 i64mat3 i64mat4
  39. \ u64vec2 u64cmplx u64vec3 u64vec4 u64quat u64mat2 u64mat3 u64mat4
  40. "
  41. " HLSL types
  42. au Syntax cpp
  43. \ syn keyword cType
  44. \ int2 int3 int4 int2x2 int3x3 int4x4
  45. \ float2 float3 float4 float2x2 float3x3 float4x4
  46. "
  47. "
  48. """
  49. """ For now, pretend .lolfx is C++
  50. """
  51. au BufRead,BufNewFile *.lolfx let b:current_syntax = "cpp"
  52. "