class_docstr: Lexer for Icon ucode files.
  
  .. versionadded:: 2.4
docstr: endsuspend and endrepeat are unique to this language, and
  \self, /self doesn't seem to get used anywhere else either.
code: def analyse_text(text):
      """endsuspend and endrepeat are unique to this language, and
      \\self, /self doesn't seem to get used anywhere else either."""
      result = 0
  
      if "endsuspend" in text:
          result += 0.1
  
      if "endrepeat" in text:
          result += 0.1
  
      if ":=" in text:
          result += 0.01
  
      if "procedure" in text and "end" in text:
          result += 0.01
  
      # This seems quite unique to unicon -- doesn't appear in any other
      # example source we have (A quick search reveals that \SELF appears in
      # Perl/Raku code)
      if r"\self" in text and r"/self" in text:
          result += 0.5
  
      return result
  
file_path: catboost/contrib/python/Pygments/py3/pygments/lexers/unicon.py
imports: import re
  from pygments.lexer import RegexLexer, include, bygroups, words, using, this
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation
label_desc: Use image node_id 1 for calling the UcodeLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: result