From 51f50b66d120f21bbd1571e026674db6eaacfcce Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 13 May 2012 17:35:23 -0400 Subject: [PATCH] Use better file name to get syntax highlighting on edit_code=True. --- loopy/compiled.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopy/compiled.py b/loopy/compiled.py index 1ce7d3ac9..1eebc5952 100644 --- a/loopy/compiled.py +++ b/loopy/compiled.py @@ -79,7 +79,7 @@ class CompiledKernel: if edit_code: from pytools import invoke_editor - self.code = invoke_editor(self.code) + self.code = invoke_editor(self.code, "code.cl") try: self.cl_program = cl.Program(context, self.code) -- GitLab