Rules: Keep a persistent context for token rules

This will be needed to build a clean indentation checking algorithm.
This commit is contained in:
Adrien Vergé
2016-01-15 17:01:44 +01:00
parent f09aef4f89
commit d617eb70ae
11 changed files with 16 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ TYPE = 'token'
# # commented line 2
# current: line
def check(conf, token, prev, next):
def check(conf, token, prev, next, context):
if prev is None:
return