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

rule: no-missing-name #3

Open
ChristianMurphy opened this issue Oct 23, 2018 · 0 comments
Open

rule: no-missing-name #3

ChristianMurphy opened this issue Oct 23, 2018 · 0 comments

Comments

@ChristianMurphy
Copy link
Owner

ChristianMurphy commented Oct 23, 2018

Ensure that required name attribute is provided.

👍 Valid

module.exports = grammar({
  name: "example",

  rules: {
    text: $ => /.+/
  }
});

👎 Invalid

module.exports = grammar({
  rules: {
    text: $ => /.+/
  }
});
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