Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Move from pygments to a treesitter based parsing.
* [WIP] Work on writing a parser using the textmate grammar backend. (#253) * Actually not only enums, quick and dirty start to using textmate parser * a little more boilerplate * property validator parsing * working function parsing without docstrings yet * start enum work * some enum parsing * working parsing for enumeration comments * add handling for block comments to enums * backport enum docstring parsing to properties * remove vestigial file * minor fixes + black * Hack for object hierarchy * Initial hack to get enumerations to work * better classdef parsing including changes to MATLAB-language-grammar prs #86, #88, and #90 * parse function docstring * extract function parser * initial work * finish integrating mat_textmate_parser with mat_types * [skip-ci] some minor changes * initial work on a tree sitter based parser * nearly finished with tree-sitter implementation * everything but events working * working events * exit early if query returns for block with no elements * integrating tree-sitter parser into mat_types * fixing default value parsing * some test fixes and requires tree-sitter * rm textmate parser on this branch * also install tree-sitter * bump required tree-sitter * tree-sitter version bump * dealing with tree-sitter version diffs to maintain py 3.8 compatibility * ML_LANG versions * a better attributes query * Ci: Test on Sphinx 8 / Dev. (#259) * CI: Testing for latest Sphinx (8.0) * CI: Fix helper class version checking. * Fixing nearly all tests in test_parse_mfile * fix a _lot_ of autodoc * temporarily point to tree-sitter-matlab branch on apozharski fork * fix old property syntax + update tests * fixing test_autodoc and test_matlabify, only comment and line continuation issues remain * fixing the last of the tests * remove dead code * address PR comments made by @joeced * fix * lint * fix typo in __all__ * remove Pygments dependencies * py-tree-sitter v0.23.0 has a breaking change for Query.match() * remove duplicat entry in yaml * fix spec printing * minor fixes for arg block parsing and a test * fix bug regarding output block argument parsing and add test * remove print and fix test_matlabify * remove textmate from dev-reqs * fix typo --------- Co-authored-by: Jørgen Cederberg <[email protected]>
- Loading branch information