somePattern = ~/+/;
final int foo = -1;
final int bar = -1;
final int foo = -1;
The pattern ~/+/ causes everything afterward to be highlighted as a slashy string I believe.
Looks like the fact that + is an operator is the issue, =, -, etc... give the same result. But putting a regular letter or digit doesn't exhibit this problem. Also removing the tilde (~) before the first / "fix" the problem.
Example:
The pattern ~/+/ causes everything afterward to be highlighted as a slashy string I believe.
Looks like the fact that
+
is an operator is the issue, =, -, etc... give the same result. But putting a regular letter or digit doesn't exhibit this problem. Also removing the tilde (~) before the first / "fix" the problem.