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

    test-matlab-ts-mode-parser: update test per last commit
---
 .../indent_fcn_with_error_no_rule.m                          |  7 +++++++
 .../indent_fcn_with_error_no_rule_expected.txt               | 12 ++++++++++++
 2 files changed, 19 insertions(+)

diff --git 
a/tests/test-matlab-ts-mode-parser-files/copy-of-test-matlab-ts-mode-indent-files/indent_fcn_with_error_no_rule.m
 
b/tests/test-matlab-ts-mode-parser-files/copy-of-test-matlab-ts-mode-indent-files/indent_fcn_with_error_no_rule.m
new file mode 100644
index 0000000000..ff27921bfb
--- /dev/null
+++ 
b/tests/test-matlab-ts-mode-parser-files/copy-of-test-matlab-ts-mode-indent-files/indent_fcn_with_error_no_rule.m
@@ -0,0 +1,7 @@
+% -*- matlab-ts -*-
+
+% Following is invalid syntax (e.g. when people make a template) and which 
results in ERROR nodes
+% that don't have an indent rule.
+
+function out = {functionName}(x,y)
+end
diff --git 
a/tests/test-matlab-ts-mode-parser-files/copy-of-test-matlab-ts-mode-indent-files/indent_fcn_with_error_no_rule_expected.txt
 
b/tests/test-matlab-ts-mode-parser-files/copy-of-test-matlab-ts-mode-indent-files/indent_fcn_with_error_no_rule_expected.txt
new file mode 100644
index 0000000000..513c4f22b5
--- /dev/null
+++ 
b/tests/test-matlab-ts-mode-parser-files/copy-of-test-matlab-ts-mode-indent-files/indent_fcn_with_error_no_rule_expected.txt
@@ -0,0 +1,12 @@
+# -*- t-utils-ts-parse-tree -*-
+(source_file<1,194> (comment[1,20]@{% -*- matlab-ts -*-}@) (comment[22,153]@{% 
Following is invalid syntax (e.g. when people ma...}@) \n[153,155]
+ (ERROR<155,185> function[155,163]
+  (function_output<164,169> (identifier[164,167]@{out}@) =[168,169])
+  (cell<170,184> {[170,171]
+   (row<171,183> (identifier[171,183]@{functionName}@))
+   }[183,184])
+  ([184,185])
+ (command<185,186> (command_name[185,186]@{x}@))
+ ,[186,187]
+ (ERROR<187,193> (identifier[187,188]@{y}@) )[188,189]
+  (end_keyword<190,193> end[190,193])))

Reply via email to