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

    matlab-ts-mode: highlight comment markers in ellipsis continuations
---
 matlab-ts-mode.el                                                     | 3 ++-
 tests/test-matlab-ts-mode-font-lock-files/font_lock_comment_markers.m | 4 +++-
 .../font_lock_comment_markers_expected.txt                            | 4 +++-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/matlab-ts-mode.el b/matlab-ts-mode.el
index bc674f8550..4008287bc2 100644
--- a/matlab-ts-mode.el
+++ b/matlab-ts-mode.el
@@ -710,7 +710,8 @@ Example, disp variable is overriding the disp builtin 
function:
    :language 'matlab
    :feature 'comment-marker
    :override t
-   '(((comment) @matlab-ts-mode--comment-to-do-capture))
+   '(((comment) @matlab-ts-mode--comment-to-do-capture)
+     ((line_continuation) @matlab-ts-mode--comment-to-do-capture))
 
    ;; F-Rule: Constant literal numbers, e.g. 1234, 12.34, 10e10
    ;; We could use this for items like true, false, pi, etc. See some of these 
numbers in:
diff --git 
a/tests/test-matlab-ts-mode-font-lock-files/font_lock_comment_markers.m 
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_comment_markers.m
index a763fc24cf..6938190689 100644
--- a/tests/test-matlab-ts-mode-font-lock-files/font_lock_comment_markers.m
+++ b/tests/test-matlab-ts-mode-font-lock-files/font_lock_comment_markers.m
@@ -9,5 +9,7 @@ function a = font_lock_comment_markers
     % FIXME - foo, TODO - bar
     %
     % XXX
-    a = 1;
+    a = 1 + ... % xxx FIXME TODO
+        2;
+
 end
diff --git 
a/tests/test-matlab-ts-mode-font-lock-files/font_lock_comment_markers_expected.txt
 
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_comment_markers_expected.txt
index 487d5620eb..5809199f98 100644
--- 
a/tests/test-matlab-ts-mode-font-lock-files/font_lock_comment_markers_expected.txt
+++ 
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_comment_markers_expected.txt
@@ -9,5 +9,7 @@ h hhhh hhh hhhhhhh hh hh hhhhhhh
     c MMMMM c cccc MMMM c ccc
     c
     c MMM
-    v o nD
+    v o n o ccc c MMM MMMMM MMMM
+        nD
+
 kkk

Reply via email to