Skip to content

Commit

Permalink
doc: Add doc comment to id field in grammar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
liamwh committed May 13, 2024
1 parent 0374b0c commit cab9479
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ module.exports = grammar({
),
),

// See here: https://github.com/WebAssembly/component-model/blob/f44d2377f79ea6dd105060f08f01e269cda7df85/design/mvp/WIT.md#wit-identifiers
// And here: https://github.com/WebAssembly/component-model/blob/c182ca92143c06287e71c3d1125e38d49ffc32b3/design/mvp/Explainer.md#import-and-export-definitions
id: ($) =>
/%?(([a-z][a-z0-9]*|[A-Z][A-Z0-9]*))(-([a-z][a-z0-9]*|[A-Z][A-Z0-9]*))*/,

Expand Down

0 comments on commit cab9479

Please sign in to comment.