codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: PoV-Ray(tm) 3.7 Scene Description Language3" Maintainer: David Necas (Yeti) <yeti@physics.muni.cz>4" Last Change: 2011-04-235" 2025 Apr 21 by Vim Project (deprecate render and statistics #17177)6 7" Setup8" quit when a syntax file was already loaded9if exists("b:current_syntax")10 finish11endif12 13syn case match14 15" Top level stuff16syn keyword povCommands global_settings17syn keyword povObjects array atmosphere background bicubic_patch blob box camera component cone cubic cylinder disc fog height_field isosurface julia_fractal lathe light_group light_source mesh mesh2 object ovus parametric pattern photons plane poly polygon polynomial prism quadric quartic rainbow sky_sphere smooth_triangle sor sphere sphere_sweep spline superellipsoid text torus triangle18syn keyword povCSG clipped_by composite contained_by difference intersection merge union19syn keyword povAppearance interior material media texture interior_texture texture_list20syn keyword povGlobalSettings ambient_light assumed_gamma charset hf_gray_16 irid_wavelength max_intersections max_trace_level number_of_waves radiosity noise_generator21syn keyword povTransform inverse matrix rotate scale translate transform22 23" Descriptors24syn keyword povDescriptors finish inside_vector normal pigment uv_mapping uv_vectors vertex_vectors25syn keyword povDescriptors adc_bailout always_sample brightness count error_bound distance_maximum gray_threshold load_file low_error_factor maximum_reuse max_sample media minimum_reuse mm_per_unit nearest_count normal pretrace_end pretrace_start recursion_limit save_file26syn keyword povDescriptors color colour rgb rgbt rgbf rgbft srgb srgbf srgbt srgbft27syn match povDescriptors "\<\(red\|green\|blue\|gray\)\>"28syn keyword povDescriptors bump_map color_map colour_map image_map material_map pigment_map quick_color quick_colour normal_map texture_map image_pattern pigment_pattern29syn keyword povDescriptors ambient brilliance conserve_energy crand diffuse fresnel irid metallic phong phong_size refraction reflection reflection_exponent roughness specular subsurface30syn keyword povDescriptors cylinder fisheye mesh_camera omnimax orthographic panoramic perspective spherical ultra_wide_angle31syn keyword povDescriptors agate aoi average brick boxed bozo bumps cells checker crackle cylindrical dents facets function gradient granite hexagon julia leopard magnet mandel marble onion pavement planar quilted radial ripples slope spherical spiral1 spiral2 spotted square tiles tile2 tiling toroidal triangular waves wood wrinkles32syn keyword povDescriptors density_file33syn keyword povDescriptors area_light shadowless spotlight parallel34syn keyword povDescriptors absorption confidence density emission intervals ratio samples scattering variance35syn keyword povDescriptors distance fog_alt fog_offset fog_type turb_depth36syn keyword povDescriptors b_spline bezier_spline cubic_spline evaluate face_indices form linear_spline max_gradient natural_spline normal_indices normal_vectors quadratic_spline uv_indices37syn keyword povDescriptors target38 39" Modifiers40syn keyword povModifiers caustics dispersion dispersion_samples fade_color fade_colour fade_distance fade_power ior41syn keyword povModifiers bounded_by double_illuminate hierarchy hollow no_shadow open smooth sturm threshold water_level42syn keyword povModifiers importance no_radiosity43syn keyword povModifiers hypercomplex max_iteration precision quaternion slice44syn keyword povModifiers conic_sweep linear_sweep45syn keyword povModifiers flatness type u_steps v_steps46syn keyword povModifiers aa_level aa_threshold adaptive area_illumination falloff jitter looks_like media_attenuation media_interaction method point_at radius tightness47syn keyword povModifiers angle aperture bokeh blur_samples confidence direction focal_point h_angle location look_at right sky up v_angle variance48syn keyword povModifiers all bump_size gamma interpolate map_type once premultiplied slope_map use_alpha use_color use_colour use_index49syn match povModifiers "\<\(filter\|transmit\)\>"50syn keyword povModifiers black_hole agate_turb brick_size control0 control1 cubic_wave density_map flip frequency interpolate inverse lambda metric mortar octaves offset omega phase poly_wave ramp_wave repeat scallop_wave sine_wave size strength triangle_wave thickness turbulence turb_depth type warp51syn keyword povModifiers eccentricity extinction52syn keyword povModifiers arc_angle falloff_angle width53syn keyword povModifiers accuracy all_intersections altitude autostop circular collect coords cutaway_textures dist_exp expand_thresholds exponent exterior gather global_lights major_radius max_trace no_bump_scale no_image no_reflection orient orientation pass_through precompute projected_through range_divider solid spacing split_union tolerance54 55" Words not marked `reserved' in documentation, but...56syn keyword povBMPType alpha exr gif hdr iff jpeg pgm png pot ppm sys tga tiff57syn keyword povFontType ttf contained58syn keyword povDensityType df3 contained59syn keyword povCharset ascii utf8 contained60 61" Math functions on floats, vectors and strings62syn keyword povFunctions abs acos acosh asc asin asinh atan atan2 atanh bitwise_and bitwise_or bitwise_xor ceil cos cosh defined degrees dimensions dimension_size div exp file_exists floor inside int internal ln log max min mod pow prod radians rand seed select sin sinh sqrt strcmp strlen sum tan tanh val vdot vlength vstr vturbulence63syn keyword povFunctions min_extent max_extent trace vcross vrotate vaxis_rotate vnormalize vturbulence64syn keyword povFunctions chr concat datetime now substr str strupr strlwr65syn keyword povJuliaFunctions acosh asinh atan cosh cube pwr reciprocal sinh sqr tanh66 67" Specialities68syn keyword povConsts clock clock_delta clock_on final_clock final_frame frame_number initial_clock initial_frame input_file_name image_width image_height false no off on pi true version yes69syn match povConsts "\<[tuvxyz]\>"70syn match povDotItem "\.\@<=\(blue\|green\|gray\|filter\|red\|transmit\|hf\|t\|u\|v\|x\|y\|z\)\>" display71 72" Comments73syn region povComment start="/\*" end="\*/" contains=povTodo,povComment74syn match povComment "//.*" contains=povTodo75syn match povCommentError "\*/"76syn sync ccomment povComment77syn sync minlines=5078syn keyword povTodo TODO FIXME XXX NOT contained79syn cluster povPRIVATE add=povTodo80 81" Language directives82syn match povConditionalDir "#\s*\(else\|end\|for\|if\|ifdef\|ifndef\|switch\|while\)\>"83syn match povLabelDir "#\s*\(break\|case\|default\|range\)\>"84syn match povDeclareDir "#\s*\(declare\|default\|local\|macro\|undef\|version\)\>" nextgroup=povDeclareOption skipwhite85syn keyword povDeclareOption deprecated once contained nextgroup=povDeclareOption skipwhite86syn match povIncludeDir "#\s*include\>"87syn match povFileDir "#\s*\(fclose\|fopen\|read\|write\)\>"88syn keyword povFileDataType uint8 sint8 unit16be uint16le sint16be sint16le sint32le sint32be89syn match povMessageDir "#\s*\(debug\|error\|warning\)\>"90syn match povMessageDirDeprecated "#\s*\%(render\|statistics\)\>"91syn region povFileOpen start="#\s*fopen\>" skip=+"[^"]*"+ matchgroup=povOpenType end="\<\(read\|write\|append\)\>" contains=ALLBUT,PovParenError,PovBraceError,@PovPRIVATE transparent keepend92 93" Literal strings94syn match povSpecialChar "\\u\x\{4}\|\\\d\d\d\|\\." contained95syn region povString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=povSpecialChar oneline96syn cluster povPRIVATE add=povSpecialChar97 98" Catch errors caused by wrong parenthesization99syn region povParen start='(' end=')' contains=ALLBUT,povParenError,@povPRIVATE transparent100syn match povParenError ")"101syn region povBrace start='{' end='}' contains=ALLBUT,povBraceError,@povPRIVATE transparent102syn match povBraceError "}"103 104" Numbers105syn match povNumber "\(^\|\W\)\@<=[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="106 107" Define the default highlighting108hi def link povComment Comment109hi def link povTodo Todo110hi def link povNumber Number111hi def link povString String112hi def link povFileOpen Constant113hi def link povConsts Constant114hi def link povDotItem povSpecial115hi def link povBMPType povSpecial116hi def link povCharset povSpecial117hi def link povDensityType povSpecial118hi def link povFontType povSpecial119hi def link povOpenType povSpecial120hi def link povSpecialChar povSpecial121hi def link povSpecial Special122hi def link povConditionalDir PreProc123hi def link povLabelDir PreProc124hi def link povDeclareDir Define125hi def link povDeclareOption Define126hi def link povIncludeDir Include127hi def link povFileDir PreProc128hi def link povFileDataType Special129hi def link povMessageDir Debug130hi def link povMessageDirDeprecated povError131hi def link povAppearance povDescriptors132hi def link povObjects povDescriptors133hi def link povGlobalSettings povDescriptors134hi def link povDescriptors Type135hi def link povJuliaFunctions PovFunctions136hi def link povModifiers povFunctions137hi def link povFunctions Function138hi def link povCommands Operator139hi def link povTransform Operator140hi def link povCSG Operator141hi def link povParenError povError142hi def link povBraceError povError143hi def link povCommentError povError144hi def link povError Error145 146let b:current_syntax = "pov"147 