google / bamboo-soy

An intellij plugin supporting Closure Template language (Soy)
Apache License 2.0
48 stars 27 forks source link

5-4 not parsed correctly. #135

Closed kaathewise closed 7 years ago

kaathewise commented 7 years ago

There are 3 different ways "-4" may be interpreted in different contexts:

  1. A CSS identifier: {css -4}
  2. A number: {-4}
  3. An operator and a number: {5-4}

The latter 2 may be resolved as always being interpreted as "an operator and a number" but then the valid CSS identifier "-4" would be a longer match in lexer.