Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
arpeggio-gm
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
arpeggio-gm
Commits
0faae5f5
Commit
0faae5f5
authored
Aug 04, 2014
by
Igor Dejanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small performance fix
parent
6ae9d264
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
__init__.py
arpeggio/__init__.py
+5
-6
No files found.
arpeggio/__init__.py
View file @
0faae5f5
...
...
@@ -157,15 +157,12 @@ class ParsingExpression(object):
if
parser
.
debug
:
print
(
">> Entering rule {}"
.
format
(
self
.
name
))
if
parser
.
_in_parse_intro
:
# Do not recurse in parse_intro
return
parser
.
_in_parse_intro
=
True
# Skip whitespaces and parse comments if we are not
# in the lexical rule
if
not
parser
.
_in_lex_rule
:
parser
.
_skip_ws
()
parser
.
_in_parse_intro
=
True
if
parser
.
comments_model
and
not
parser
.
_in_parse_comment
:
parser
.
_in_parse_comment
=
True
try
:
...
...
@@ -181,10 +178,12 @@ class ParsingExpression(object):
finally
:
parser
.
_in_parse_comment
=
False
parser
.
_in_parse_intro
=
False
parser
.
_in_parse_intro
=
False
def
parse
(
self
,
parser
):
self
.
_parse_intro
(
parser
)
if
not
parser
.
_in_parse_intro
:
self
.
_parse_intro
(
parser
)
# Current position could change in recursive calls
# so save it.
...
...
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