class_docstr: For Component Pascal source code.
  
  .. versionadded:: 2.1
class_docstr_tok: ["For","Component","Pascal","source","code",".","..","versionadded",":",":","2.1"]
docstr: The only other lexer using .cp is the C++ one, so we check if for
  a few common Pascal keywords here. Those are unfortunately quite
  common across various business languages as well.
docstr_tok: ["The","only","other","lexer","using",".cp","is","the","C++","one",",","so","we","check","if","for","a","few","common","Pascal","keywords","here",".","Those","are","unfortunately","quite","common","across","various","business","languages","as","well","."]
code: def analyse_text(text):
      """The only other lexer using .cp is the C++ one, so we check if for
      a few common Pascal keywords here. Those are unfortunately quite
      common across various business languages as well."""
      result = 0
      if "BEGIN" in text:
          result += 0.01
      if "END" in text:
          result += 0.01
      if "PROCEDURE" in text:
          result += 0.01
      if "END" in text:
          result += 0.01
  
      return result
  
imports: import re
  from pygments.lexer import RegexLexer, include, words
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation
label_desc: Use image node_id 1 for calling the ComponentPascalLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: result