language-scala icon indicating copy to clipboard operation
language-scala copied to clipboard

Syntax highlight bug: '\r'|'\n'

Open OliverBalfour opened this issue 5 years ago • 0 comments

This (slimmed down) function:

def consume (c : Char) {
  state =
    (state,c) match {
      case (HeaderLine(ln),'\r'|'\n') => { processHeaderLine(ln) ; NextLine(""+c) }
    }
}

renders as this:

image

Adding spaces like '\r' | '\n' fixes the issue.

OliverBalfour avatar Oct 22 '20 03:10 OliverBalfour