branch: externals/matlab-mode
commit 0bcdd1575a71152e606d3a8b7baee4913b172217
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>
matlab-ts-mode: add skipped test for matlab tree-sitter issue 116
---
...ont_lock_line_cont_in_cell_or_matrix_issue116.m | 64 ++++++++++++++++++++++
...k_line_cont_in_cell_or_matrix_issue116.skip.txt | 1 +
.../indent_line_cont_in_cell_or_matrix_issue116.m | 64 ++++++++++++++++++++++
...t_line_cont_in_cell_or_matrix_issue116.skip.txt | 1 +
4 files changed, 130 insertions(+)
diff --git
a/tests/test-matlab-ts-mode-font-lock-files/font_lock_line_cont_in_cell_or_matrix_issue116.m
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_line_cont_in_cell_or_matrix_issue116.m
new file mode 100644
index 0000000000..d23741585a
--- /dev/null
+++
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_line_cont_in_cell_or_matrix_issue116.m
@@ -0,0 +1,64 @@
+% -*- matlab-ts -*-
+
+% See https://github.com/acristoffers/tree-sitter-matlab/issues/116
+
+fcn1({...
+ {'one'}...
+ ...
+ {'two'}
+ });
+
+fcn1({ ...
+ {'one'} ...
+ ...
+ {'two'}
+ });
+
+fcn1({,...
+ {'one'},...
+ ...
+ {'two'}
+ });
+
+fcn1({, ...
+ {'one'}, ...
+ ...
+ {'two'}
+ });
+
+fcn1([...
+ {'one'}...
+ ...
+ {'two'}
+ ]);
+
+fcn1([ ...
+ {'one'} ...
+ ...
+ {'two'}
+ ]);
+
+fcn1([,...
+ {'one'},...
+ ...
+ {'two'}
+ ]);
+
+fcn1([, ...
+ {'one'}, ...
+ ...
+ {'two'}
+ ]);
+
+function fcn1(x)
+ disp(x);
+end
+
+function out = a
+ out = "a string";
+end
+
+function out = b
+ out = "b string";
+end
+
diff --git
a/tests/test-matlab-ts-mode-font-lock-files/font_lock_line_cont_in_cell_or_matrix_issue116.skip.txt
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_line_cont_in_cell_or_matrix_issue116.skip.txt
new file mode 100644
index 0000000000..76066e9894
--- /dev/null
+++
b/tests/test-matlab-ts-mode-font-lock-files/font_lock_line_cont_in_cell_or_matrix_issue116.skip.txt
@@ -0,0 +1 @@
+See https://github.com/acristoffers/tree-sitter-matlab/issues/116
diff --git
a/tests/test-matlab-ts-mode-indent-files/indent_line_cont_in_cell_or_matrix_issue116.m
b/tests/test-matlab-ts-mode-indent-files/indent_line_cont_in_cell_or_matrix_issue116.m
new file mode 100644
index 0000000000..d23741585a
--- /dev/null
+++
b/tests/test-matlab-ts-mode-indent-files/indent_line_cont_in_cell_or_matrix_issue116.m
@@ -0,0 +1,64 @@
+% -*- matlab-ts -*-
+
+% See https://github.com/acristoffers/tree-sitter-matlab/issues/116
+
+fcn1({...
+ {'one'}...
+ ...
+ {'two'}
+ });
+
+fcn1({ ...
+ {'one'} ...
+ ...
+ {'two'}
+ });
+
+fcn1({,...
+ {'one'},...
+ ...
+ {'two'}
+ });
+
+fcn1({, ...
+ {'one'}, ...
+ ...
+ {'two'}
+ });
+
+fcn1([...
+ {'one'}...
+ ...
+ {'two'}
+ ]);
+
+fcn1([ ...
+ {'one'} ...
+ ...
+ {'two'}
+ ]);
+
+fcn1([,...
+ {'one'},...
+ ...
+ {'two'}
+ ]);
+
+fcn1([, ...
+ {'one'}, ...
+ ...
+ {'two'}
+ ]);
+
+function fcn1(x)
+ disp(x);
+end
+
+function out = a
+ out = "a string";
+end
+
+function out = b
+ out = "b string";
+end
+
diff --git
a/tests/test-matlab-ts-mode-indent-files/indent_line_cont_in_cell_or_matrix_issue116.skip.txt
b/tests/test-matlab-ts-mode-indent-files/indent_line_cont_in_cell_or_matrix_issue116.skip.txt
new file mode 100644
index 0000000000..76066e9894
--- /dev/null
+++
b/tests/test-matlab-ts-mode-indent-files/indent_line_cont_in_cell_or_matrix_issue116.skip.txt
@@ -0,0 +1 @@
+See https://github.com/acristoffers/tree-sitter-matlab/issues/116