Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

parse multiple selectors #15

Open
abalosc1 opened this issue Jan 8, 2019 · 0 comments
Open

parse multiple selectors #15

abalosc1 opened this issue Jan 8, 2019 · 0 comments

Comments

@abalosc1
Copy link
Collaborator

abalosc1 commented Jan 8, 2019

Example Multiple Selectors:

node[type=palm],
way[type=palm] {
  throwWarning: tr("{0} is deprecated", "{0.tag}");
  suggestAlternative: "leaf_type";
  suggestAlternative: "trees";
  suggestAlternative: "species";
  group: tr("deprecated tagging");
}

Example Output:

    {
        "geometry": "node",
        "equals": {
            "type": "palm"
        },
        "warning": "'type=palm' is deprecated, use 'leaf_type' or 'trees' or 'species' instead"
    },
    {
        "geometry": "way",
        "equals": {
            "type": "palm"
        },
        "warning": "'type=palm' is deprecated, use 'leaf_type' or 'trees' or 'species' instead"
    },

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant