summaryrefslogtreecommitdiffstats
path: root/tests/snippets/matlab/test_one_space_assignment.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/matlab/test_one_space_assignment.txt')
-rw-r--r--tests/snippets/matlab/test_one_space_assignment.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/snippets/matlab/test_one_space_assignment.txt b/tests/snippets/matlab/test_one_space_assignment.txt
new file mode 100644
index 0000000..ceafb6e
--- /dev/null
+++ b/tests/snippets/matlab/test_one_space_assignment.txt
@@ -0,0 +1,13 @@
+# Test that one space before an equal sign is formatted correctly.
+
+---input---
+x = 100;
+
+---tokens---
+'x' Name
+' ' Text.Whitespace
+'=' Punctuation
+' ' Text.Whitespace
+'100' Literal.Number.Integer
+';' Punctuation
+'\n' Text.Whitespace