Commit b657a127 by Vitaly Babiy Committed by Timothée Peignier

Fixing docs about how to write a custom compiler

Signed-off-by: Timothée Peignier <timothee.peignier@tryphon.org>
parent 10bfc532
......@@ -140,7 +140,7 @@ A custom compiler for a imaginary compiler called jam ::
output_extension = 'js'
def match_file(self, filename):
return path.endswith('.jam')
return filename.endswith('.jam')
def compile_file(self, content, path):
return jam.compile(content)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment