Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9f849269
Commit
9f849269
authored
Sep 07, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added lexer support for newlines and comments.
parent
c03cecab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
lex.c
dlls/vbscript/lex.c
+16
-1
run.c
dlls/vbscript/tests/run.c
+1
-0
No files found.
dlls/vbscript/lex.c
View file @
9f849269
...
...
@@ -36,8 +36,23 @@ static int parse_next_token(void *lval, parser_ctx_t *ctx)
return
ctx
->
last_token
==
tNL
?
tEOF
:
tNL
;
c
=
*
ctx
->
ptr
;
switch
(
c
)
{
case
'\n'
:
ctx
->
ptr
++
;
return
tNL
;
case
'\''
:
ctx
->
ptr
=
strchrW
(
ctx
->
ptr
,
'\n'
);
if
(
ctx
->
ptr
)
ctx
->
ptr
++
;
else
ctx
->
ptr
=
ctx
->
end
;
return
tNL
;
default:
FIXME
(
"Unhandled char %c in %s
\n
"
,
*
ctx
->
ptr
,
debugstr_w
(
ctx
->
ptr
));
return
c
;
}
return
0
;
}
int
parser_lex
(
void
*
lval
,
parser_ctx_t
*
ctx
)
...
...
dlls/vbscript/tests/run.c
View file @
9f849269
...
...
@@ -462,6 +462,7 @@ static void run_tests(void)
strict_dispid_check
=
TRUE
;
parse_script_a
(
""
);
parse_script_a
(
"' empty ;"
);
}
static
BOOL
check_vbscript
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment