Commit graph

6 commits

Author SHA1 Message Date
Eric Ludlam
fea089e220 matlab.el:
(matlab-block-comment-start-re, matlab-block-comment-end-re):
New regular expressions used to find the start/end of a block comment.
(matlab-ltype-block-comment-start, matlab-ltype-block-comment-end):
New predicates to check for block comment features.
(matlab-find-block-comments, matlab-ltype-block-comm-1):
Use new block comment expressions instead of hand-written regexps.
(matlab-ltype-block-comm-at-start, matlab-ltype-block-comm-at-end)
(matlab-electric-block-comment):
Use new block comment predicates.

indents.m:
Add some block comment indentation tests with valid and invalid block
comment starts.
2020-04-22 18:00:00 -04:00
Eric Ludlam
9eee3937ba matlab.el:
(matlab-keyword-list): Add `arguments' to list.
(matlab-class-font-lock-keywords): Add 'arguments' to regex where 'properties' are.
(matlab-mcos-regexp): Add `arguments' to expression.

tests/indents.el:
Add sample arguments block with indentation checks.
2020-02-24 10:42:10 -05:00
Eric Ludlam
42ae40f8e8 tests/indents.m:
Added tests to verify the above.
2019-12-14 19:45:50 -05:00
Eric Ludlam
73dff40bfa tests/indents.el
Added more block comment patterns.
2019-12-07 10:24:31 -05:00
Eric Ludlam
1e6a2bbd38 indents.m:
Add wide range of additional tests.
This should have a mostly complete set of features
from matlab.el's indentation engine now.
2019-12-06 22:58:34 -05:00
Eric Ludlam
a58df74bf1 metest.el - add metest-indents-test and support functions.
Tweak how all the test status msgs are printed to be better seperated.
Add indentation tokens to mclass.
Add new indents.m
2019-10-03 21:15:41 -04:00