nl_tokens: regexp must not have capturing parentheses regexps are ordered - > the first match is used
pl_tokens: function string ( state ) { return [ { token : "string" , regex : '".*?"' } , { token : "string" , // multi line string start regex : '["].*$' , next : state + "-qqstring" } , { token : "string" , regex : "'.*?'" } , { token : "string" , // multi line string start regex : "['].*$" , <mask> : state + "-qstring" } ] }