--- 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/08/13 18:30:42 1.3
@@ -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 == 'µ' || 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++;