diff --git a/source/Ox/js/JavaScript.js b/source/Ox/js/JavaScript.js index c14bc46a..0f138ea4 100644 --- a/source/Ox/js/JavaScript.js +++ b/source/Ox/js/JavaScript.js @@ -884,14 +884,14 @@ Ox.tokenize Tokenizes JavaScript column Column of the token line Line of the token type Type of the token - Type can be `"comment"`, `"error"`, `"identifier"`, `"linebreak"`, - `"number"`, `"operator"`, `"regexp"`, `"string"` or `"whitespace"` + Type can be `'comment'`, `'error'`, `'identifier'`, `'linebreak'`, + `'number'`, `'operator'`, `'regexp'`, `'string'` or `'whitespace'` value Value of the token source JavaScript source code > Ox.tokenize('// comment\nvar foo = bar / baz;').length 14 - > Ox.tokenize('return /foo/g;')[2].value.length - 6 + > Ox.tokenize('return /foo/gi;')[2].value.length + 7 > Ox.tokenize('[0xFF, 1e1, 1e+1, 1e-1, 1e+1+1]').length 17 @*/