Skip to content

Show Comments in TextMate Scope Inspector #206192

@Number-3434

Description

@Number-3434

In TextMate grammar, you can declare comments like so:

[
  {
    "match": "^(!!!|doctype)(\\s*[a-zA-Z0-9-_]+)?",
    "name": "meta.tag.sgml.doctype.html",
    "comment": "Doctype declaration."
  },
]

It would be useful if VSCode showed the comments in some way, as currently they are only descriptive in the TextMate file, and do not provide any external help.

This could be used to provide basic documentation for TextMate scopes.

You can also declare names for token customisations.

Proposal

Show comments in the TextMate scope inspector (access using Developer: Inspect Editor Tokens and Scopes (editor.action.inspectTMScopes))

image

Views

### Tasks
- [ ] https://github.com/microsoft/vscode-textmate/issues/227

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitygrammarSyntax highlighting grammar

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions