Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
70bb2a3e
Commit
70bb2a3e
authored
May 13, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
identifiers are encoded strings
parent
73bc8c3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Cython/Compiler/Scanning.py
Cython/Compiler/Scanning.py
+7
-3
No files found.
Cython/Compiler/Scanning.py
View file @
70bb2a3e
...
...
@@ -11,7 +11,7 @@ import stat
import
sys
from
time
import
time
from
Cython
import
Plex
from
Cython
import
Plex
,
Utils
from
Cython.Plex
import
Scanner
from
Cython.Plex.Errors
import
UnrecognizedInput
from
Errors
import
CompileError
,
error
...
...
@@ -320,8 +320,12 @@ class PyrexScanner(Scanner):
sy
,
systring
=
self
.
read
()
except
UnrecognizedInput
:
self
.
error
(
"Unrecognized character"
)
if
sy
==
'IDENT'
and
systring
in
self
.
resword_dict
:
sy
=
systring
if
sy
==
'IDENT'
:
if
systring
in
self
.
resword_dict
:
sy
=
systring
else
:
systring
=
Utils
.
EncodedString
(
systring
)
systring
.
encoding
=
self
.
source_encoding
self
.
sy
=
sy
self
.
systring
=
systring
if
debug_scanner
:
...
...
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