branch: externals/matlab-mode
commit fab8d96ac29568fd1f1ded08137f8124f3f92e14
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>
matlab-ts-mode: update to latest tree-sitter-matlab
https://github.com/acristoffers/tree-sitter-matlab/commit/da410185c1fabf823ab92798590f9a6606e5699b
On Aug-9-2025
This fixes https://github.com/acristoffers/tree-sitter-matlab/issues/53
---
.../font_lock_error_issue53_end.m | 29 ++++++++++++++++++++++
.../font_lock_error_issue53_end_expected.txt | 29 ++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git
a/tests/test-matlab-ts-mode-font-lock-files/font_lock_error_issue53_end.m
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_error_issue53_end.m
new file mode 100644
index 0000000000..89d4a154e5
--- /dev/null
+++ b/tests/test-matlab-ts-mode-font-lock-files/font_lock_error_issue53_end.m
@@ -0,0 +1,29 @@
+% -*- matlab-ts -*-
+
+% See https://github.com/acristoffers/tree-sitter-matlab/issues/53
+
+v = 1:10
+g1 = v(2:end)
+g2 = v(end:end)
+g3 = v(end-2)
+g4 = v(end+2-3)
+
+a = 1:10
+
+b = a(end)
+c = a(end, :)
+d = a(end, end)
+
+x = [1, 2
+ 3, 4];
+y = [5, 6
+ 7, 8];
+z = [9, 10
+ 11, 12];
+
+xyz = cat(3, x, y, z)
+
+x1 = xyz(end, :, :)
+x2 = xyz(end, end, :)
+x3 = xyz(:, :, end)
+x4 = xyz(end, end, end)
diff --git
a/tests/test-matlab-ts-mode-font-lock-files/font_lock_error_issue53_end_expected.txt
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_error_issue53_end_expected.txt
new file mode 100644
index 0000000000..d6b08dfee5
--- /dev/null
+++
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_error_issue53_end_expected.txt
@@ -0,0 +1,29 @@
+c ccc ccccccccc ccc
+
+c ccc cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+
+v o nDnn
+vv o dbnDNNNb
+vv o dbNNNDNNNb
+vv o dbNNNonb
+vv o dbNNNononb
+
+v o nDnn
+
+v o dbNNNb
+v o dbNNND Db
+v o dbNNND NNNb
+
+v o bnD n
+ nD nbD
+v o bnD n
+ nD nbD
+v o bnD nn
+ nnD nnbD
+
+vvv o BBBbnD dD dD db
+
+vv o dddbNNND DD Db
+vv o dddbNNND NNND Db
+vv o dddbDD DD NNNb
+vv o dddbNNND NNND NNNb