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
Xavier Thompson
cython
Commits
c46463ed
Commit
c46463ed
authored
9 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exclude tracing macros from Python interaction score in HTML annotation
parent
1d926e84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/Annotate.py
Cython/Compiler/Annotate.py
+3
-1
No files found.
Cython/Compiler/Annotate.py
View file @
c46463ed
...
@@ -84,6 +84,7 @@ class AnnotationCCodeWriter(CCodeWriter):
...
@@ -84,6 +84,7 @@ class AnnotationCCodeWriter(CCodeWriter):
.cython.code .pyx_c_api { color: #FF3000; }
.cython.code .pyx_c_api { color: #FF3000; }
.cython.code .pyx_macro_api { color: #FF7000; }
.cython.code .pyx_macro_api { color: #FF7000; }
.cython.code .refnanny { color: #FFA000; }
.cython.code .refnanny { color: #FFA000; }
.cython.code .trace { color: #FFA000; }
.cython.code .error_goto { color: #FFA000; }
.cython.code .error_goto { color: #FFA000; }
.cython.code .coerce { color: #008000; border: 1px dotted #008000 }
.cython.code .coerce { color: #008000; border: 1px dotted #008000 }
...
@@ -166,7 +167,7 @@ class AnnotationCCodeWriter(CCodeWriter):
...
@@ -166,7 +167,7 @@ class AnnotationCCodeWriter(CCodeWriter):
pos_comment_marker
=
u'/*
\
N{HORIZONTAL ELLIPSIS}
*/
\
n
'
pos_comment_marker
=
u'/*
\
N{HORIZONTAL ELLIPSIS}
*/
\
n
'
new_calls_map
=
dict
(
new_calls_map
=
dict
(
(
name
,
0
)
for
name
in
(
name
,
0
)
for
name
in
'refnanny py_macro_api py_c_api pyx_macro_api pyx_c_api error_goto'
.
split
()
'refnanny
trace
py_macro_api py_c_api pyx_macro_api pyx_c_api error_goto'
.
split
()
).
copy
).
copy
self
.
mark_pos
(
None
)
self
.
mark_pos
(
None
)
...
@@ -223,6 +224,7 @@ class AnnotationCCodeWriter(CCodeWriter):
...
@@ -223,6 +224,7 @@ class AnnotationCCodeWriter(CCodeWriter):
_parse_code
=
re
.
compile
(
_parse_code
=
re
.
compile
(
ur'(?P<refnanny>__Pyx_X?(?:GOT|GIVE)REF|__Pyx_RefNanny[A-Za-z]+)|'
ur'(?P<refnanny>__Pyx_X?(?:GOT|GIVE)REF|__Pyx_RefNanny[A-Za-z]+)|'
ur'(?P<trace>__Pyx_Trace[A-Za-z]+)|'
ur'(?:'
ur'(?:'
ur'(?P<pyx_macro_api>__Pyx_[A-Z][A-Z_]+)|'
ur'(?P<pyx_macro_api>__Pyx_[A-Z][A-Z_]+)|'
ur'(?P<pyx_c_api>__Pyx_[A-Z][a-z_][A-Za-z_]+)|'
ur'(?P<pyx_c_api>__Pyx_[A-Z][a-z_][A-Za-z_]+)|'
...
...
This diff is collapsed.
Click to expand 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