branch: externals/matlab-mode commit 80a8a7187fa7397391128bc022834ffb4f1aef4a Author: John Ciolfi <john.ciolfi...@gmail.com> Commit: John Ciolfi <john.ciolfi...@gmail.com>
matlab-ts-mode: add test for classdef properties issue 49 --- .../font_lock_classdef_properties_issue49.m | 11 +++++++++++ .../font_lock_classdef_properties_issue49_expected.txt | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/tests/test-matlab-ts-mode-font-lock-files/font_lock_classdef_properties_issue49.m b/tests/test-matlab-ts-mode-font-lock-files/font_lock_classdef_properties_issue49.m new file mode 100644 index 0000000000..0e320788b7 --- /dev/null +++ b/tests/test-matlab-ts-mode-font-lock-files/font_lock_classdef_properties_issue49.m @@ -0,0 +1,11 @@ +% -*- matlab-ts -*- +% +% See: https://github.com/acristoffers/tree-sitter-matlab/issues/49 +% where p1 double wasn't being parsed correctly. + +classdef font_lock_classdef_properties_issue49 + properties + p0 + p1 double; + end +end diff --git a/tests/test-matlab-ts-mode-font-lock-files/font_lock_classdef_properties_issue49_expected.txt b/tests/test-matlab-ts-mode-font-lock-files/font_lock_classdef_properties_issue49_expected.txt new file mode 100644 index 0000000000..b99956323b --- /dev/null +++ b/tests/test-matlab-ts-mode-font-lock-files/font_lock_classdef_properties_issue49_expected.txt @@ -0,0 +1,11 @@ +c ccc ccccccccc ccc +c +c cccc cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc +c ccccc cc cccccc cccccc ccccc cccccc cccccccccc + +kkkkkkkk fffffffffffffffffffffffffffffffffffff + kkkkkkkkkk + PP + PP ttttttD + kkk +kkk