Skip to content

language grammar misses primitive types in parameter lists #46

Open
@JayDaley

Description

@JayDaley

In the language grammar the following language rule is defined in such a way that it misses primitive types inside the parameter list and scopes them as an entity.name.class instead

parameter-list = {
  patterns = (
    { match = '([a-zA-Z$_][a-zA-Z0-9$_]*)\s*:\s*([A-Za-z0-9][\w|_|?|\.]*)?,?';
      captures = {
        1 = { name = 'variable.parameter'; };
        2 = { name = 'entity.name.class'; };
      };
    },
  );
};

I'm pretty sure that the way to fix this involves using

begin = '\(';
end = '\)';

and then recursively calling the storage and other language rules but I've no idea how to do that!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions