Skip to content

Commit

Permalink
Fix syntax coloration with element/attribute which can contains '-'
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr authored and datho7561 committed Oct 14, 2022
1 parent ef7b754 commit b67d792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntaxes/rnc.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"name": "entity.other.attribute.rnc"
}
},
"match": "\\b(attribute)\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s*\\{",
"match": "\\b(attribute)\\s+([a-zA-Z][-a-zA-Z_0-9]*)\\s*\\{",
"name": "meta.declaration.attribute.rnc"
},
{
Expand All @@ -43,7 +43,7 @@
"name": "entity.other.element.rnc"
}
},
"match": "\\b(element)\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s*\\{",
"match": "\\b(element)\\s+([a-zA-Z][-a-zA-Z_0-9]*)\\s*\\{",
"name": "meta.declaration.element.rnc"
},
{
Expand Down

0 comments on commit b67d792

Please sign in to comment.