class_docstr: A `REBOL <http://www.rebol.com/>`_ lexer.
  
  .. versionadded:: 1.1
docstr: Check if code contains REBOL header and so it probably not R code
code: def analyse_text(text):
      """
      Check if code contains REBOL header and so it probably not R code
      """
      if re.match(r"^\s*REBOL\s*\[", text, re.IGNORECASE):
          # The code starts with REBOL header
          return 1.0
      elif re.search(r"\s*REBOL\s*\[", text, re.IGNORECASE):
          # The code contains REBOL header but also some text before it
          return 0.5
  
file_path: catboost/contrib/python/Pygments/py3/pygments/lexers/rebol.py
imports: import re
  from pygments.lexer import RegexLexer, bygroups
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Generic, Whitespace
label_desc: Use image node_id 2 for calling the RebolLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: int, int