matlab.el:
(matlab-font-lock-anchor-variable-match): . is ok in arguments variable names. tests/blocks.m: Added sample argument block using variable name as struct with . in it.
This commit is contained in:
parent
4d261a86a2
commit
6d28272cfc
|
@ -976,7 +976,7 @@ color support."
|
|||
This matcher will handle a range of variable features."
|
||||
(when (member (nth 1 matlab-fl-anchor-keyword)
|
||||
'("properties" "events" "arguments"))
|
||||
(let* ((match (re-search-forward "\\(?:^\\|[,;]\\)\\s-+\\(\\w+\\)\\_>" ml-fl-anchor-limit t))
|
||||
(let* ((match (re-search-forward "\\(?:^\\|[,;]\\)\\s-+\\(\\(?:\\w+\\|\\.\\)+\\)\\_>" ml-fl-anchor-limit t))
|
||||
;; Save this match so we can do a 2nd anchored search for a data type.
|
||||
(md1 (list (match-beginning 1) (match-end 1)))
|
||||
(tm (looking-at
|
||||
|
|
|
@ -121,6 +121,19 @@ classdef blocks < handle
|
|||
y = a+b+length(varargin); %!!12
|
||||
|
||||
end
|
||||
|
||||
function linLog(x,y,scale)
|
||||
arguments(Repeating) %!!12
|
||||
x (1,:) double
|
||||
y (1,:) double
|
||||
end %!!12
|
||||
arguments %!!12
|
||||
scale.Plottype(1,1) string %!!16
|
||||
%^ ^vn ^vn ^ty ^ty
|
||||
end %!!12
|
||||
|
||||
sprintf('%d %d %s\n', x, y, scale);
|
||||
end
|
||||
|
||||
|
||||
%>>22
|
||||
|
|
Loading…
Reference in a new issue