class_docstr: `Rexx <http://www.rexxinfo.org/>`_ is a scripting language available for
  a wide range of different platforms with its roots found on mainframe
  systems. It is popular for I/O- and data based tasks and can act as glue
  language to bind different applications together.
  
  .. versionadded:: 2.0
docstr: Check for inital comment and patterns that distinguish Rexx from other
  C-like languages.
docstr_tok: ["Check","for","inital","comment","and","patterns","that","distinguish","Rexx","from","other","C-like","languages","."]
code: def analyse_text(text):
      """
      Check for inital comment and patterns that distinguish Rexx from other
      C-like languages.
      """
      if re.search(r"/\*\**\s*rexx", text, re.IGNORECASE):
          # Header matches MVS Rexx requirements, this is certainly a Rexx
          # script.
          return 1.0
      elif text.startswith("/*"):
          # Header matches general Rexx requirements; the source code might
          # still be any language using C comments such as C++, C# or Java.
          lowerText = text.lower()
          result = (
              sum(
                  weight
                  for (
                      pattern,
                      weight,
                  ) in RexxLexer.PATTERNS_AND_WEIGHTS
                  if pattern.search(lowerText)
              )
              + 0.01
          )
          return min(result, 1.0)
  
imports: import re
  from pygments.lexer import RegexLexer, include, bygroups, default, combined, words
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Error, Whitespace, Other
  from pygments.util import get_bool_opt, get_list_opt, iteritems
label_desc: Use image node_id 1 for calling the RexxLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: int, min