class_docstr: `scdoc` is a simple man page generator for POSIX systems written in C99.
  
  .. versionadded:: 2.5
class_docstr_tok: ["`","scdoc","`","is","a","simple","man","page","generator","for","POSIX","systems","written","in","C99",".","..","versionadded",":",":","2.5"]
docstr: We checks for bold and underline text with * and _. Also
  every scdoc file must start with a strictly defined first line.
docstr_tok: ["We","checks","for","bold","and","underline","text","with","*","and","_",".","Also","every","scdoc","file","must","start","with","a","strictly","defined","first","line","."]
code: def analyse_text(text):
      """We checks for bold and underline text with * and _. Also
      every scdoc file must start with a strictly defined first line."""
      result = 0
  
      if "*" in text:
          result += 0.01
  
      if "_" in text:
          result += 0.01
  
      # name(section) ["left_footer" ["center_header"]]
      first_line = text.partition("\n")[0]
      scdoc_preamble_pattern = r'^.*\([1-7]\)( "[^"]+"){0,2}$'
  
      if re.search(scdoc_preamble_pattern, first_line):
          result += 0.5
  
      return result
  
imports: import re
  from pygments.lexer import RegexLexer, include, bygroups, using, this
  from pygments.token import Text, Comment, Keyword, String, Generic
label_desc: Use image node_id 1 for calling the ScdocLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: result