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

    matlab-ts-mode--ei: ignore inserted commas in assert line node types 
function
---
 matlab-ts-mode--ei.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/matlab-ts-mode--ei.el b/matlab-ts-mode--ei.el
index db3e780a0c..625933418a 100644
--- a/matlab-ts-mode--ei.el
+++ b/matlab-ts-mode--ei.el
@@ -1294,6 +1294,10 @@ TAB>  x = 123 ./1 + 567
                                                        linenum)
   "Validate CURR-LINE-NODE-TYPES eq ORIG-LINE-NODE-TYPES for LINENUM."
 
+  ;; We insert comma's in arrays, so curr-line-node-types may be larger, thus 
ignore commas
+  (setq curr-line-node-types (replace-regexp-in-string " , " " " 
curr-line-node-types))
+  (setq orig-line-node-types (replace-regexp-in-string " , " " " 
orig-line-node-types))
+
   (when (not (string= curr-line-node-types orig-line-node-types))
 
     ;; See https://github.com/acristoffers/tree-sitter-matlab/issues/148

Reply via email to