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

    matlab-ts-mode: test for parsing cells with comments
---
 tests/test-matlab-ts-mode-parser-files/parser_cell.m      |  5 ++++-
 .../parser_cell_expected.txt                              | 15 ++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/tests/test-matlab-ts-mode-parser-files/parser_cell.m 
b/tests/test-matlab-ts-mode-parser-files/parser_cell.m
index 13e93cdbfe..9f6f57a8d6 100644
--- a/tests/test-matlab-ts-mode-parser-files/parser_cell.m
+++ b/tests/test-matlab-ts-mode-parser-files/parser_cell.m
@@ -2,7 +2,10 @@
 
 a = {{1, 2};
      {3, 4};
-     [1:10]};
+     % comment 1
+     1:10
+     % comment 2
+    };
 
 b = "not a {cell}";
 
diff --git a/tests/test-matlab-ts-mode-parser-files/parser_cell_expected.txt 
b/tests/test-matlab-ts-mode-parser-files/parser_cell_expected.txt
index d905e13671..bd3f6ae470 100644
--- a/tests/test-matlab-ts-mode-parser-files/parser_cell_expected.txt
+++ b/tests/test-matlab-ts-mode-parser-files/parser_cell_expected.txt
@@ -12,14 +12,11 @@
      (cell {
       (row (number[41,42]{3}) , (number[44,45]{4}))
       }))
-    ;
+    ; (comment[53,64]{% comment 1})
     (row
-     (matrix [
-      (row
-       (range (number[54,55]{1}) : (number[56,58]{10})))
-      ]))
-    }))
+     (range (number[70,71]{1}) : (number[72,74]{10})))
+    (comment[80,91]{% comment 2}) }))
  ;
- (assignment left: (identifier[63,64]{b}) =
-  right: (string " (string_content[68,80]{not a \{cell\}}) "))
- ; (comment[84,95]{%\{\n  foo\n%\}}) \n)
+ (assignment left: (identifier[100,101]{b}) =
+  right: (string " (string_content[105,117]{not a \{cell\}}) "))
+ ; (comment[121,132]{%\{\n  foo\n%\}}) \n)

Reply via email to