Closed lildude closed 5 years ago
👋 I'm the lead maintainer of https://github.com/github/linguist which uses this grammar for syntax highlighting of Hack files on GitHub.com.
I'm in the process of making a new release and our grammar compiler has detected an error in your grammar that was introduced in https://github.com/slackhq/vscode-hack/pull/72:
'Repository[type-annotation].Patterns[3].EndCaptures[1]' expected a map, got 'string'
The error is because the first, and only, endCaptures in the fourth pattern of type-annotation is a string:
endCaptures
type-annotation
"endCaptures": { "1": "keyword.operator.key.php" },
It should be a map, ie:
"endCaptures": { "1": { "name": "keyword.operator.key.php" } },
PR coming up.
👋 I'm the lead maintainer of https://github.com/github/linguist which uses this grammar for syntax highlighting of Hack files on GitHub.com.
I'm in the process of making a new release and our grammar compiler has detected an error in your grammar that was introduced in https://github.com/slackhq/vscode-hack/pull/72:
The error is because the first, and only,
endCaptures
in the fourth pattern oftype-annotation
is a string:It should be a map, ie:
PR coming up.