class_docstr: For Matlab source code.
  
  .. versionadded:: 0.10
class_docstr_tok: ["For","Matlab","source","code",".","..","versionadded",":",":","0.10"]
code: def analyse_text(text):
      # function declaration.
      first_non_comment = next(
          (
              line
              for line in text.splitlines()
              if not re.match(r"^\s*%", text)
          ),
          "",
      ).strip()
      if (
          first_non_comment.startswith("function")
          and "{" not in first_non_comment
      ):
          return 1.0
      # comment
      elif re.match(r"^\s*%", text, re.M):
          return 0.2
      # system cmd
      elif re.match(r"^!\w+", text, re.M):
          return 0.2
  
file_path: catboost/contrib/python/Pygments/py2/pygments/lexers/matlab.py
imports: import re
  from pygments.lexer import Lexer, RegexLexer, bygroups, words, do_insertions
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Generic, Whitespace
  from pygments.lexers import _scilab_builtins
label_desc: Use image node_id 1 for calling the MatlabLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: int, int, int