Guest User

Untitled

a guest
Feb 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. { scopeName = 'source.povray';
  2. fileTypes = ( 'pov', 'lib', 'mac' );
  3. foldingStartMarker = '(?x)
  4. ^\s*
  5. (\#macro.*
  6. |\#switch.*
  7. |\#while.*
  8. |\#if.*
  9. |.*\{.*
  10. )\s*$
  11. ';
  12. foldingStopMarker = '^\s*\}|^\s*#end\b\s*$';
  13. patterns = (
  14. { name = 'comment.block.povray';
  15. begin = '/\*';
  16. end = '\*/';
  17. },
  18. { name = 'comment.line.double-slash.povray';
  19. begin = '//';
  20. end = '$\n?';
  21. },
  22. { name = 'string.quoted.double.povray';
  23. begin = '"';
  24. end = '"';
  25. patterns = (
  26. { name = 'constant.character.escape.povray';
  27. match = '\\.';
  28. }
  29. );
  30. },
  31. { name = 'meta.function.with-parentheses.povray';
  32. match = '(#macro)\s*([\w_]+)\s*\(\s*(.*)\s*\)';
  33. comment = 'use begin and end to match the whole block?';
  34. captures =
  35. { 1 = { name = 'keyword.control.povray'; };
  36. 2 = { name = 'entity.name.function.povray'; };
  37. 3 = { name = 'variable.parameter.povray'; };
  38. };
  39. },
  40. { name = 'meta.something.povray';
  41. match = '(#if)\s*\(\s*(.*)\s*\)';
  42. comment = 'use begin and end to match the whole block?';
  43. captures =
  44. { 1 = { name = 'keyword.control.povray'; };
  45. 2 = { name = 'something.povray'; };
  46. };
  47. },
  48. { name = 'meta.function.povray';
  49. match = '(acos|degrees|concat|vlength)\s*\(\s*(.*)\s*\)';
  50. comment = 'This breaks when spread across multiple lines';
  51. captures =
  52. { 1 = { name = 'keyword.control.povray'; };
  53. 2 = { name = 'something.povray'; };
  54. };
  55. },
  56. { name = 'meta.notsure.povray';
  57. begin = '(union)\s*(\{)';
  58. end = '(\})';
  59. comment = 'The end does not work right, it grabs the first } it finds, which is wrong.';
  60. captures =
  61. { 1 = { name = 'keyword.control.povray'; };
  62. 2 = { name = 'variable.parameter.povray'; };
  63. };
  64. patterns = ( { include = '$self'; } );
  65. },
  66. { name = 'keyword.control.povray';
  67. match = '(#if|#end|#local|#declare|#debug)\b';
  68. },
  69. { name = 'keyword.control.povray';
  70. match = '\b(translate|scale|rotate|object)\b';
  71. },
  72. );
  73. }
Add Comment
Please, Sign In to add comment