Skip to content

Commit

Permalink
Allow named tags to end in numbers
Browse files Browse the repository at this point in the history
See #4
  • Loading branch information
leonhard-s committed Oct 28, 2021
1 parent 00c513a commit a724339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/injection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ repository:
emphasis:
# For coding with ~passion~ \o/
patterns:
# Boild text, for when you need to write with passion
# Bold text, for when you need to write with passion
- match: (\*\*)[^\t *][^*]+[^\t *](\*\*)
captures:
1: { name: punctuation.definition.bold.sphinx }
Expand Down Expand Up @@ -123,7 +123,7 @@ repository:
tag:
# RST inline tags. These are mostly used for autodoc tags, i.e.
# things like ":param key:" or ":rtype: str".
match: (:)(${{ alpha }}[${{ alphaNum }} _\-\.]+?${{ alpha }}(\?_)?)(:)(?!`)
match: (:)(${{ alpha }}[${{ alphaNum }} _\-\.]+?${{ alphaNum }}(\?_)?)(:)(?!`)
captures:
1: { name: punctuation.definition.interpreted.sphinx }
2: { name: entity.name.tag.sphinx }
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/injection.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
]
},
"tag": {
"match": "(:)([A-z][[A-z0-9] _\\-\\.]+?[A-z](\\?_)?)(:)(?!`)",
"match": "(:)([A-z][[A-z0-9] _\\-\\.]+?[A-z0-9](\\?_)?)(:)(?!`)",
"captures": {
"1": {
"name": "punctuation.definition.interpreted.sphinx"
Expand Down

0 comments on commit a724339

Please sign in to comment.