using scala mode syntax regexes