branch: externals/matlab-mode
commit 6771f49655a684ccbfd908eafb8a15334558f18d
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>
matlab-ts-mode: add note that matlab tree-sitter catches errors that
codeIssues() does not
---
matlab-ts-mode.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/matlab-ts-mode.el b/matlab-ts-mode.el
index fca772051c..af0d22c3e3 100644
--- a/matlab-ts-mode.el
+++ b/matlab-ts-mode.el
@@ -3797,6 +3797,12 @@ provided."
Optional NO-POP-TO-BUFFER, if non-nil will not run `pop-to-buffer'.
The errors are displayed in a \"*parse errors in BUFFER-NAME*\" buffer
and this buffer is returned."
+
+ ;; Note, matlab tree-sitter can detect errors that it seems MATLAB cannot.
For example, the
+ ;; codeIssues() command in MATLAB R2026a doesn't detect that
+ ;; 1 + @foo
+ ;; is a syntax error (you cannot add a number to a function handle).
+
(interactive)
(when (not (eq major-mode 'matlab-ts-mode))