MCPcopy Create free account
hub / github.com/defold/defold / ClassExtension

Class ClassExtension

engine/docs/script_doc.py:182–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 pass
181
182class ClassExtension(Extension):
183 def extendMarkdown(self, md, md_globals):
184 pattern = r'\[(?P<prefix>[a-z0-9-_]+):(?P<text>.+?)\]'
185 cp = ClassPattern(pattern)
186 cp.md = md
187 cp.ext = self
188 # Add inline pattern before "reference" pattern
189 md.inlinePatterns.register(cp, "class", REF_PATTERN_PRIORITY_VALUE)
190
191class ClassPattern(Pattern):
192 def getCompiledRegExp(self):

Callers 1

script_doc.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected