Skip to content

Commit

Permalink
Merge pull request #9 from Bobronium/develop
Browse files Browse the repository at this point in the history
Diffirentiate end colon from start one
  • Loading branch information
leonhard-s authored May 18, 2022
2 parents fe1d69b + e762780 commit 67315db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/injection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions syntaxes/injection.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -177,7 +177,7 @@
"name": "entity.name.tag.value.sphinx"
},
"5": {
"name": "punctuation.definition.interpreted.sphinx"
"name": "punctuation.definition.interpreted.end.sphinx"
}
}
},
Expand Down

0 comments on commit 67315db

Please sign in to comment.