⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pov.vim

📁 MSYS在windows下模拟了一个类unix的终端
💻 VIM
字号:
" Vim syntax file" Language: POV-Ray(tm) 3.1 Screen Description Language" Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>" Last Change: 2001-04-26" URI: http://physics.muni.cz/~yeti/download/pov.vim" Notes: Old keywords like alpha, component, composite, tiles, etc. are"        NOT highlighted."        The border between descriptors and modifiers is somewhat fuzzy." TODO: add `display' where appropriate" Setup {{{" React to possibly already-defined syntax." For version 5.x: Clear all syntax items unconditionally" For version 6.x: Quit when a syntax file was already loadedif version >= 600  if exists("b:current_syntax")    finish  endifelse  syntax clearendifsyn case match" }}}" Top level stuff {{{syn keyword povCommands         global_settingssyn keyword povObjects          array atmosphere background bicubic_patch blob box camera cone cubic cylinder disc fog height_field julia_fractal lathe light_source mesh object plane poly polygon prism quadric quartic rainbow sky_sphere smooth_triangle sor sphere superellipsoid text torus trianglesyn keyword povCSG              clipped_by difference intersection merge unionsyn keyword povAppearance       interior material media texturesyn keyword povGlobalSettings   adc_bailout ambient_light assumed_gamma hf_gray_16 irid_wavelength max_intersections max_trace_level number_of_waves Number radiositysyn keyword povTransform        matrix rotate scale translate transform" }}}" Descriptors {{{syn keyword povDescriptors      finish normal pigment" FIXME: filter and transmit are both descriptors and modifiers (i chose modifier)"syn keyword povDescriptors      color colour rgb rgbt rgbf rgbft red green blue filter transmitsyn keyword povDescriptors      color colour rgb rgbt rgbf rgbft red green bluesyn keyword povDescriptors      bump_map color_map colour_map image_map material_map pigment_map quick_color quick_colour texture_mapsyn keyword povDescriptors      ambient brilliance crand diffuse irid metallic phong phong_size reflection reflection_exponent roughness specularsyn keyword povDescriptors      cylinder fisheye omnimax orthographic panoramic perspective ultra_wide_anglesyn keyword povDescriptors      agate average brick boxed bozo bumps checker crackle cylindrical density_file dents gradient granite hexagon leopard mandel marble onion planar quilted radial ripples spherical spiral1 spiral2 spotted waves wood wrinkles" FIXME: cylinder is both object and descriptor (fortunately they're both linked to Type by default)"syn keyword povDescriptors      area_light cylinder shadowless spotlightsyn keyword povDescriptors      area_light shadowless spotlightsyn keyword povDescriptors      absorption confidence density emission intervals ratio samples scattering variancesyn keyword povDescriptors      distance fog_alt fog_offset fog_type turb_depthsyn keyword povDescriptors      brightness count distance_maximum error_bound gray_threshold low_error_factor minimum_reuse nearest_count recursion_limit" }}}" Modifiers {{{syn keyword povModifiers        caustics fade_distance fade_power iorsyn keyword povModifiers        bounded_by hierarchy hollow no_shadow open smooth sturm threshold water_levelsyn keyword povModifiers        hypercomplex max_iteration precision quaternion slicesyn keyword povModifiers        bezier_spline conic_sweep cubic_spline linear_spline linear_sweep quadratic_splinesyn keyword povModifiers        flatness type u_steps v_stepssyn keyword povModifiers        adaptive falloff jitter looks_like media_attenuation media_interaction point_at radius tightnesssyn keyword povModifiers        angle aperture blur_samples confidence direction focal_point location look_at right sky up variancesyn keyword povModifiers        all bump_size filter interpolate map_type normal_map once slope_map transmit use_color use_colour use_indexsyn keyword povModifiers        black_hole agate_turb brick_size control0 control1 cubic_wave density_map flip frequency interpolate inverse lambda mortar octaves offset omega phase poly_wave ramp_wave repeat scallop_wave sine_wave strength triangle_wave thickness turbulence type warpsyn keyword povModifiers        eccentricity extinctionsyn keyword povModifiers        arc_angle falloff_angle width" }}}" Words not marked `reserved' in documentation, but... {{{syn keyword povHFType           gif iff pgm png pot ppm sys tga containedsyn keyword povFontType         ttf containedsyn keyword povDensityType      df3 contained" }}}" Math functions on floats, vectors and strings {{{syn keyword povFunctions        abs acos asc asin atan2 ceil cos defined degrees dimensions dimension_size div exp file_exists floor int log max min mod pow radians rand seed sin sqrt strcmp strlen tan val vdot vlengthsyn keyword povFunctions        vaxis_rotate vcross vnormalize vrotatesyn keyword povFunctions        chr concat substr str strupr strlwr" Functions available in julia_fractal onlysyn keyword povJuliaFunctions   acosh asinh atan cosh cube pwr reciprocal sinh sqr tanh" }}}" Specialities {{{syn keyword povConsts           clock clock_delta false no off on pi t true u v version x y yes zsyn match   povDotItem          "\.\(blue\|green\|filter\|red\|transmit\|t\|u\|v\|x\|y\|z\)\>"lc=1" }}}" Comments {{{" (can be nested)syn region povComment           start="/\*" end="\*/" contains=povTodo,povCommentsyn match  povComment           "//.*" contains=povTodosyn match  povCommentError      "\*/"syn sync ccomment povCommentsyn keyword povTodo             TODO FIXME XXX contained" }}}" Language directives {{{" (highlight only the keyword)syn match povConditionalDir     "#\s*\(else\|end\|if\|ifdef\|ifndef\|switch\|while\)\>"syn match povLabelDir           "#\s*\(break\|case\|default\|range\)\>"syn match povDeclareDir         "#\s*\(declare\|default\|local\|macro\|undef\|version\)\>"syn match povIncludeDir         "#\s*include\>"syn match povFileDir            "#\s*\(fclose\|fopen\|read\|write\)\>"syn match povMessageDir         "#\s*\(debug\|error\|render\|statistics\|warning\)\>"syn keyword povOpenType         read write append containedsyn region povFileOpen          start="#\s*fopen\>" skip=+"[^"]*"+ end="\<\(read\|write\|append\)\>" contains=ALLBUT,PovParenError,PovBraceError,PovTodo transparent keepend" }}}" Literal strings {{{" (must be one-liners)syn match   povSpecialChar      "\\\d\d\d\|\\." containedsyn region  povString           start=+"+  skip=+\\\\\|\\"+  end=+"+  contains=povSpecialChar oneline" }}}" Catch errors caused by wrong parenthesization {{{" For parenthesessyn region      povParen        start='(' end=')' contains=ALLBUT,povParenError,povSpecial,povTodo transparentsyn match       povParenError   ")"" Idem for curly bracessyn region      povBrace        start='{' end='}' contains=ALLBUT,povBraceError,povSpecial,povTodo transparentsyn match       povBraceError   "}"" }}}" Numbers {{{" (POV-Ray knows only floats)syn match  povNumber            "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1" Does anyone start lines with a number?syn match  povNumber            "^[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="" }}}" Define the default highlighting {{{" For version 5.7 and earlier: Only when not done already" For version 5.8 and later: Only when an item doesn't have highlighting yetif version >= 508 || !exists("did_pov_syntax_inits")  if version < 508    let did_pov_syntax_inits = 1    command -nargs=+ HiLink hi link <args>  else    command -nargs=+ HiLink hi def link <args>  endif  " comments  HiLink povComment            Comment  " todo  HiLink povTodo               Todo  " constants  HiLink povNumber             Number  HiLink povString             String  HiLink povFileOpen           Constant  HiLink povConsts             Constant  HiLink povDotItem            Constant  " specials  HiLink povHFType             povSpecial  HiLink povDensityType        povSpecial  HiLink povFontType           povSpecial  HiLink povOpenType           povSpecial  HiLink povSpecialChar        povSpecial  HiLink povSpecial            Special  " preproc or like  HiLink povConditionalDir     PreProc  HiLink povLabelDir           PreProc  HiLink povDeclareDir         Define  HiLink povIncludeDir         Include  HiLink povFileDir            PreProc  HiLink povMessageDir         Debug  " objects and descriptors  HiLink povAppearance         povDescriptors  HiLink povObjects            povDescriptors  HiLink povGlobalSettings     povDescriptors  HiLink povDescriptors        Type  " functions  HiLink povJuliaFunctions     PovFunctions  HiLink povModifiers          povFunctions  HiLink povFunctions          Function  " operators  HiLink povCommands           Operator  HiLink povTransform          Operator  HiLink povCSG                Operator  " errors  HiLink povParenError         povError  HiLink povBraceError         povError  HiLink povCommentError       povError  HiLink povError              Error  delcommand HiLinkendif" }}}let b:current_syntax = "pov"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -