Add Support Highlight for 3.5.0+ Syntax.

This adds in highlighting for Python 3.5.0+ users who uses "async def" and
"await"'s for coroutines.
These keywords are also planned to change in 3.6.0 as well with PEP-530.
http://www.python.org/dev/peps/pep-0530

Closes #2650
This commit is contained in:
AraHaan 2016-12-07 00:23:26 -06:00 committed by Don Ho
parent f787d22a70
commit 855e581e44

View File

@ -210,7 +210,7 @@
<Language name="props" ext="properties" commentLine=";"> <Language name="props" ext="properties" commentLine=";">
</Language> </Language>
<Language name="python" ext="py pyw" commentLine="#"> <Language name="python" ext="py pyw" commentLine="#">
<Keywords name="instre1">and as assert break class continue def del elif else except exec False finally for from global if import in is lambda None not or pass print raise return True try while with yield</Keywords> <Keywords name="instre1">and as assert break class continue def del elif else except exec False finally for from global if import in is lambda None not or pass print raise return True try while with yield async await</Keywords>
</Language> </Language>
<Language name="r" ext="r s splus" commentLine="#"> <Language name="r" ext="r s splus" commentLine="#">
<Keywords name="instre1">if else repeat while function for in next break TRUE FALSE NULL NA Inf NaN</Keywords> <Keywords name="instre1">if else repeat while function for in next break TRUE FALSE NULL NA Inf NaN</Keywords>