Author Topic: [1.8RC2] CodeEditor should highlight Python print keyword  (Read 2876 times)

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
"print" is a keyword in Python2 (see http://docs.python.org/2/reference/lexical_analysis.html#identifiers), but it is not highlighted (see http://pixinsight.com/forum/index.php?topic=5109.msg35229#msg35229). You may have used the syntax rules from Python3 http://docs.python.org/3.3/reference/lexical_analysis.html#identifiers where "print" is not a keyword. I would suggest to highlight the union of Python2/3 keywords, or provide a switch in CodeEditor.

Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: [1.8RC2] CodeEditor should highlight Python print keyword
« Reply #1 on: 2013 January 27 05:04:08 »
Hi Georg,

You're right, of course. I used the Python 3 documentation. I have already included 'print' as a keyword, so this fix will be included in the next RC version (we are considering releasing an RC4 version), and of course in the final 1.8.0.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/