Skip to content

Commit 7239847

Browse files
fix: Ignore %#codegen compilation directive (#61)
* fix: Ignore `%#codegen` compilation directive * Exclude all pragmas instead of only %#codegen Co-authored-by: Mark Shui Hu <watermarkhu@gmail.com> --------- Co-authored-by: Mark Shui Hu <watermarkhu@gmail.com>
1 parent c3a9899 commit 7239847

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/mkdocstrings_handlers/matlab/treesitter.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,18 @@ def _comment_docstring(
621621
except StopIteration:
622622
break
623623

624+
# Exclude all pragma's
625+
if line in [
626+
'%#codegen',
627+
'%#eml',
628+
'%#external',
629+
'%#exclude',
630+
'%#function',
631+
'%#ok',
632+
'%#mex',
633+
]:
634+
continue
635+
624636
if "--8<--" in line:
625637
continue
626638

0 commit comments

Comments
 (0)