diff --git a/src/injection.yaml b/src/injection.yaml index aa5031e..419019e 100644 --- a/src/injection.yaml +++ b/src/injection.yaml @@ -123,10 +123,10 @@ repository: # things like ":param key:" or ":rtype: str". match: (:)([a-z][A-Za-z0-9]{2,})( ([A-Za-z_\*\\][A-Za-z0-9_\.\*\\]*[A-Za-z0-9_]))?(:)(?!`) captures: - 1: { name: punctuation.definition.interpreted.sphinx } + 1: { name: punctuation.definition.interpreted.start.sphinx } 2: { name: entity.name.tag.sphinx } 4: { name: entity.name.tag.value.sphinx } - 5: { name: punctuation.definition.interpreted.sphinx } + 5: { name: punctuation.definition.interpreted.end.sphinx } cross-references: # Add support for colourful cross-references diff --git a/syntaxes/injection.json b/syntaxes/injection.json index 2df37ec..b07fdce 100644 --- a/syntaxes/injection.json +++ b/syntaxes/injection.json @@ -168,7 +168,7 @@ "match": "(:)([a-z][A-Za-z0-9]{2,})( ([A-Za-z_\\*\\\\][A-Za-z0-9_\\.\\*\\\\]*[A-Za-z0-9_]))?(:)(?!`)", "captures": { "1": { - "name": "punctuation.definition.interpreted.sphinx" + "name": "punctuation.definition.interpreted.start.sphinx" }, "2": { "name": "entity.name.tag.sphinx" @@ -177,7 +177,7 @@ "name": "entity.name.tag.value.sphinx" }, "5": { - "name": "punctuation.definition.interpreted.sphinx" + "name": "punctuation.definition.interpreted.end.sphinx" } } },