@@ -1098,20 +1098,21 @@ object messages {
1098
1098
val kind = " Syntax"
1099
1099
val op1Asso = if (op2LeftAssoc) " which is right-associative" else " which is left-associative"
1100
1100
val op2Asso = if (op2LeftAssoc) " which is left-associative" else " which is right-associative"
1101
- val msg = s " ${ hl " ` ${op1}` " } ( ${op1Asso}) and ${ hl " ` ${op2}` " } ( $op2Asso) have same precedence and may not be mixed "
1101
+ val msg = s " ` ${op1}` ( ${op1Asso}) and ` ${op2}` ( $op2Asso) have same precedence and may not be mixed "
1102
1102
val explanation =
1103
- s """ |The operators ${hl " ${ op1}" } and ${hl " ${ op2} " } are used as infix operators in the same expression,
1103
+ s """ |The operators ${op1} and ${op2} are used as infix operators in the same expression,
1104
1104
|but they bind to different sides:
1105
- | ${hl " ${ op1} " } is applied to the operand to its ${if (op2LeftAssoc) " right" else " left" }
1106
- | ${hl " ${ op2} " } is applied to the operand to its ${if (op2LeftAssoc) " left" else " right" }
1105
+ | ${op1} is applied to the operand to its ${if (op2LeftAssoc) " right" else " left" }
1106
+ | ${op2} is applied to the operand to its ${if (op2LeftAssoc) " left" else " right" }
1107
1107
|As both have the same precedence the compiler can't decide which to apply first.
1108
1108
|
1109
1109
|You may use parenthesis to make the application order explicit,
1110
- |or use method application syntax ${ hl " `operand1. ${op1}(operand2)` " } .
1110
+ |or use method application syntax `operand1. ${op1}(operand2)`.
1111
1111
|
1112
1112
|Operators ending in a colon `:` are right-associative. All other operators are left-associative.
1113
1113
|
1114
- |Infix operator precedence is determined by the operator's first character:
1114
+ |Infix operator precedence is determined by the operator's first character. Characters are listed
1115
+ |below in increasing order of precedence, with characters on the same line having the same precedence.
1115
1116
| (all letters)
1116
1117
| |
1117
1118
| ^
@@ -1122,7 +1123,7 @@ object messages {
1122
1123
| + -
1123
1124
| * / %
1124
1125
| (all other special characters)
1125
- |Operators starting with a letter have lowest precedence, followed by operators starting with `|' , etc.
1126
+ |Operators starting with a letter have lowest precedence, followed by operators starting with `|` , etc.
1126
1127
| """ .stripMargin
1127
1128
}
1128
1129
0 commit comments