mirror of
https://git.checksum.fail/alec/mujs.git
synced 2026-05-01 18:19:42 +03:00
Bump VERSION to commit 76bd203
This commit is contained in:
@@ -1 +1 @@
|
|||||||
commit 32064e10caa45e68fc87331ca53d042049cc9396
|
commit 76bd203f63d3c64fd54955caae4ca831b8e1cdff
|
||||||
|
|||||||
@@ -477,7 +477,7 @@ static int isregexpcontext(int last)
|
|||||||
static int lexregexp(js_State *J)
|
static int lexregexp(js_State *J)
|
||||||
{
|
{
|
||||||
const char *s;
|
const char *s;
|
||||||
int g, m, i;
|
int g, m, i, flags;
|
||||||
int inclass = 0;
|
int inclass = 0;
|
||||||
|
|
||||||
/* already consumed initial '/' */
|
/* already consumed initial '/' */
|
||||||
@@ -525,10 +525,12 @@ static int lexregexp(js_State *J)
|
|||||||
jsY_error(J, "duplicated flag in regular expression");
|
jsY_error(J, "duplicated flag in regular expression");
|
||||||
|
|
||||||
J->text = s;
|
J->text = s;
|
||||||
J->number = 0;
|
|
||||||
if (g) J->number += JS_REGEXP_G;
|
flags = 0;
|
||||||
if (i) J->number += JS_REGEXP_I;
|
if (g) flags |= JS_REGEXP_G;
|
||||||
if (m) J->number += JS_REGEXP_M;
|
if (i) flags |= JS_REGEXP_I;
|
||||||
|
if (m) flags |= JS_REGEXP_M;
|
||||||
|
J->number = flags;
|
||||||
return TK_REGEXP;
|
return TK_REGEXP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user