class_docstr: For GDScript source code.
class_docstr_tok: ["For","GDScript","source","code","."]
code: def analyse_text(text):
      score = 0.0
  
      if re.search(
          r"func (_ready|_init|_input|_process|_unhandled_input)", text
      ):
          score += 0.8
  
      if re.search(
          r"(extends |class_name |onready |preload|load|setget|func [^_])",
          text,
      ):
          score += 0.4
  
      if re.search(r"(var|const|enum|export|signal|tool)", text):
          score += 0.2
  
      return min(score, 1.0)
  
imports: import re
  from pygments.lexer import RegexLexer, include, bygroups, default, words, combined
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Whitespace
label_desc: Use image node_id 2 for calling the GDScriptLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: min