hvesalai / emacs-scala-mode

The definitive scala-mode for emacs
http://ensime.org
GNU General Public License v3.0
362 stars 68 forks source link

Fix bad syntax when `*/` is prefixed by an opcode. #143

Closed isomarcte closed 6 years ago

isomarcte commented 6 years ago

When */ is prefixed by one or more members of scala-syntax:opchar-group ([#:<=>@!%&*+/?\\\\^|~-]), the scala-syntax:propertize-special-symbols function incorrectly marks all the characters as symbol values. This causes the */ not to be recognized as a comment terminator.

This commit corrects the issue by adding an exclusion to the scala-syntax:propertize-special-symbols function if the match value has a suffix of */.

A concrete example can be viewed at https://github.com/scala/scala/blob/v2.11.11/src/reflect/scala/reflect/internal/Symbols.scala#L863 .

CLAassistant commented 6 years ago

CLA assistant check
All committers have signed the CLA.