Description
Hi @ThomasMertes ,
Inside the lib/array.s7i
file, the declaration of ARR_TAIL
, ARR_HEAD
and ARR_RANGE
place the ..
special operator before, after or in-between arguments like this:
const func arrayType: (in arrayType: arr) [ (in integer: start) .. ] is action "ARR_TAIL";
const func arrayType: (in arrayType: arr) [ .. (in integer: stop) ] is action "ARR_HEAD";
const func arrayType: (in arrayType: arr) [ (in integer: start) ..
(in integer: stop) ] is action "ARR_RANGE";
Is this a special case? Or is it it possible to create signatures where any special operator could be used in any order/sequence of argument parenthesis-block?
I am trying to create a regular expression to match any format of function or procedure arguments. That's the reason I am asking this question.
The regexp I have is already quite big and I'm trying to reduce it as much as possible.
In the current implementation of seed7-mode, this is important because it allows detection of functions/procedure declarations and that is used in several places: navigation, auto-indentation, imenu, Speedbar and will also have an impact on cross-reference.