Specific color for invalid names #6
Replies: 2 comments 2 replies
-
This is in the TODO list, as annotated in the source code maybe_node:
- include: block_nodes
- include: inline_nodes
- include: text_processing_nodes
- include: unknown_node
# TODO: When all nodes are implemented, all that's left is an
# unescaped '[', which should be scoped as invalid/error!
- include: bail-out
The color depends on the scheme you're using, with my scheme they are differently colored. Currently, unknown_node:
# This is a just a temporary scope, to cover the unimplemented nodes.
# It will be removed once all nodes are implemented.
- match: '\[[a-z][a-z_]*\b'
scope: entity.name.tag.other.begin.pml The fact that the On Using
|
Beta Was this translation helpful? Give feedback.
-
Unknown Node: Orphan
|
Beta Was this translation helpful? Give feedback.
-
If I write:
... the whole text is highlighted. That's ok.
However If I write:
... then
[do
is highlighted in the same color as before, but]
isn't highlighted.As this is an invalid tag, it would be nice to display the whole text (or at least
[do
) in an 'error' color.The same could be done for attributes. An invalid attribute name is displayed in an 'error' color.
Beta Was this translation helpful? Give feedback.
All reactions