class_docstr: For Persistence of Vision Raytracer files.
  
  .. versionadded:: 0.11
class_docstr_tok: ["For","Persistence","of","Vision","Raytracer","files",".","..","versionadded",":",":","0.11"]
docstr: POVRAY is similar to JSON/C, but the combination of camera and
  light_source is probably not very likely elsewhere. HLSL or GLSL
  are similar (GLSL even has #version), but they miss #declare, and
  light_source/camera are not keywords anywhere else -- it's fair
  to assume though that any POVRAY scene must have a camera and
  lightsource.
docstr_tok: ["POVRAY","is","similar","to","JSON\/C",",","but","the","combination","of","camera","and","light_source","is","probably","not","very","likely","elsewhere",".","HLSL","or","GLSL","are","similar","(","GLSL","even","has","#","version",")",",","but","they","miss","#","declare",",","and","light_source\/camera","are","not","keywords","anywhere","else","--","it","'s","fair","to","assume","though","that","any","POVRAY","scene","must","have","a","camera","and","lightsource","."]
code: def analyse_text(text):
      """POVRAY is similar to JSON/C, but the combination of camera and
      light_source is probably not very likely elsewhere. HLSL or GLSL
      are similar (GLSL even has #version), but they miss #declare, and
      light_source/camera are not keywords anywhere else -- it's fair
      to assume though that any POVRAY scene must have a camera and
      lightsource."""
      result = 0
      if "#version" in text:
          result += 0.05
      if "#declare" in text:
          result += 0.05
      if "camera" in text:
          result += 0.05
      if "light_source" in text:
          result += 0.1
  
      return result
  
file_path: catboost/contrib/python/Pygments/py3/pygments/lexers/graphics.py
imports: from pygments.lexer import RegexLexer, words, include, bygroups, using, this, default
  from pygments.token import Text, Comment, Operator, Keyword, Name, Number, Punctuation, String, Whitespace
label_desc: Use image node_id 1 for calling the PovrayLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: result