Skip to content

Commit

Permalink
Fix operator definition highlighting in VS Code
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbandes committed Nov 5, 2023
1 parent ffed744 commit e881645
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Swift.tmLanguage.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Swift.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,8 @@ repository:
2: { name: storage.type.function.operator.swift }
3: { name: entity.name.function.operator.swift }
4:
# workaround for https://github.com/microsoft/vscode-textmate/issues/140#issuecomment-1793610346
name: entity.name.function.operator.swift
patterns:
- name: invalid.illegal.dot-not-allowed-here.swift
match: \.
Expand Down
4 changes: 4 additions & 0 deletions Syntaxes/Swift.tmLanguage

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions grammar-test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ precedencegroup ExamplePrecedence {
}

infix operator ?= :ComparisonPrecedence
infix operator .=. :ComparisonPrecedence

// MARK: Other expressions

Expand Down

0 comments on commit e881645

Please sign in to comment.