branch: externals/matlab-mode
commit 4f6b550f082ff4bc627622649cd18d596e82c4e1
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>

    matlab-ts-mode: minor cleanup on builtin handling, added to do's.
---
 maintenance/genBuiltinsHashTable.m | 3 +++
 matlab-ts-mode--builtins.el        | 1 -
 matlab-ts-mode.el                  | 4 +++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/maintenance/genBuiltinsHashTable.m 
b/maintenance/genBuiltinsHashTable.m
index 6ce3cfa2ba..846873d86e 100644
--- a/maintenance/genBuiltinsHashTable.m
+++ b/maintenance/genBuiltinsHashTable.m
@@ -102,6 +102,9 @@ function [ht, nEntries] = getHashTableEntries(fcnStart, ht, 
nEntries)
 
         if ~isempty(m)
             fcn = m{1}{1};
+            if isequal(fcn, mfilename)
+                continue; % skip ourself
+            end
             desc = strtrim(m{1}{2});
             entryType = m{1}{3};
             switch entryType
diff --git a/matlab-ts-mode--builtins.el b/matlab-ts-mode--builtins.el
index 7f7fd3e23c..5ac25fa5d6 100644
--- a/matlab-ts-mode--builtins.el
+++ b/matlab-ts-mode--builtins.el
@@ -27032,7 +27032,6 @@
            "fxpc_sfir_tb" t
            "fxpc_sobel" t
            "fxpscale" t
-           "genBuiltinsHashTable" t
            "g2h" t ;; Convert g-parameters to hybrid h-parameters
            "ga" t ;; Find minimum of function using genetic algorithm
            "gabor" t ;; Create Gabor filter or Gabor filter bank
diff --git a/matlab-ts-mode.el b/matlab-ts-mode.el
index 3795dceb65..ce2994dd00 100644
--- a/matlab-ts-mode.el
+++ b/matlab-ts-mode.el
@@ -1306,6 +1306,7 @@ is t, add the following to an Init File (e.g. 
`user-init-file' or
     ;; I think we need (setq-local lsp-enable-imenu nil) when lsp-mode is 
used.  Can we find a
     ;; automatic way to do this? See:
     ;; 
https://www.reddit.com/r/emacs/comments/1c216kr/experimenting_with_tree_sitter_and_imenulist/
+    ;; At minimum we should doc this.
     (setq-local imenu-create-index-function 
#'matlab-ts-mode--imenu-create-index)
 
     ;; M-x outline-minor-mode
@@ -1319,7 +1320,8 @@ is t, add the following to an Init File (e.g. 
`user-init-file' or
     (setq-local electric-pair-inhibit-predicate 
#'matlab-ts-mode--electric-pair-inhibit-predicate)
 
     ;; TODO Highlight parens OR if/end type blocks
-    ;; TODO code folding
+    ;; TODO double check indent of function args when continuations are present
+    ;; TODO the MATLAB menu items from matlab.el, e.g. debugging, etc.
 
     (treesit-major-mode-setup)))
 

Reply via email to