Creating Lexer for PIC Assembly Language

Hi guys so I have have never programmed anything with Code Mirror before and I need to figure out how to create a lexer for a language we use for one of my classes. Im rusty on JS as I normally work with C# and it has been a while. I was wondering if I could have some help or if someone could point me in the right direction thanks.