--- loncom/html/adm/LC_math_editor/src/tokenizer.js 2014/09/24 18:14:39 1.1 +++ loncom/html/adm/LC_math_editor/src/tokenizer.js 2015/02/24 15:20:44 1.2 @@ -18,6 +18,8 @@ through which recipients can access the */ +"use strict"; + /** * String tokenizer. Recognizes only names, numbers, and parser operators. * @constructor @@ -141,12 +143,14 @@ main: } // names - if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) { + if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || + (c >= 'α' && c <= 'ω') || (c >= 'Α' && c <= 'Ω') || c == 'µ') { value = c; i++; for (;;) { c = this.text.charAt(i); if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || + (c >= 'α' && c <= 'ω') || (c >= 'Α' && c <= 'Ω') || c == 'µ' || (c >= '0' && c <= '9') || c === '_') { value += c; i++;