class_docstr: Lexer for Singularity definition files.
  
  .. versionadded:: 2.6
class_docstr_tok: ["Lexer","for","Singularity","definition","files",".","..","versionadded",":",":","2.6"]
docstr: This is a quite simple script file, but there are a few keywords
  which seem unique to this language.
docstr_tok: ["This","is","a","quite","simple","script","file",",","but","there","are","a","few","keywords","which","seem","unique","to","this","language","."]
code: def analyse_text(text):
      """This is a quite simple script file, but there are a few keywords
      which seem unique to this language."""
      result = 0
      if re.search(
          r"\b(?:osversion|includecmd|mirrorurl)\b", text, re.IGNORECASE
      ):
          result += 0.5
  
      if re.search(SingularityLexer._section[1:], text):
          result += 0.49
  
      return result
  
imports: import re
  from pygments.lexer import ExtendedRegexLexer, RegexLexer, default, words, bygroups, include, using, line_re
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Whitespace, Literal, Error, Generic
  from pygments.lexers.shell import BashLexer
  from pygments.lexers.data import JsonLexer
label_desc: Use image node_id 1 for calling the SingularityLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: result