Skip to content

Commit

Permalink
Add left arrow <- token
Browse files Browse the repository at this point in the history
> The left arrow symbol has been unused since before Rust 1.0, but it is still treated as a single token

https://doc.rust-lang.org/reference/tokens.html#punctuation
  • Loading branch information
youngspe authored and Wilfred committed Aug 27, 2024
1 parent cf3c686 commit 3c4ad96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntaxes/rust.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@
{
"comment": "dashrocket, skinny arrow",
"name": "keyword.operator.arrow.skinny.rust",
"match": "->"
"match": "->|<-"
},
{
"comment": "hashrocket, fat arrow",
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/rust.tmLanguage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ repository:
-
comment: dashrocket, skinny arrow
name: keyword.operator.arrow.skinny.rust
match: ->
match: ->|<-
-
comment: hashrocket, fat arrow
name: keyword.operator.arrow.fat.rust
Expand Down

0 comments on commit 3c4ad96

Please sign in to comment.