##// END OF EJS Templates
Add description of priority system
Thomas Kluyver -
Show More
@@ -153,6 +153,10 b' class TokenTransformBase:'
153
153
154 Subclasses need to implement one class method (find)
154 Subclasses need to implement one class method (find)
155 and one regular method (transform).
155 and one regular method (transform).
156
157 The priority attribute can select which transformation to apply if multiple
158 transformers match in the same place. Lower numbers have higher priority.
159 This allows "%magic?" to be turned into a help call rather than a magic call.
156 """
160 """
157 # Lower numbers -> higher priority (for matches in the same location)
161 # Lower numbers -> higher priority (for matches in the same location)
158 priority = 10
162 priority = 10
General Comments 0
You need to be logged in to leave comments. Login now