-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
Description of the Issue
Notepad++ does not know about the Python 3.5+ syntax of async def and await
Steps to Reproduce the Issue
- Get a Python 3.5+ Script.
- Open it with Notepad++
- await and async are not highlighted when they should be.
Expected Behavior
async and await getting highlighted
Actual Behavior
No highlighting for async and await whatsoever.
Debug Information
Notepad++ v7.2.2 (32-bit)
Build time : Nov 27 2016 - 16:31:07
Path : E:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : ON
Local Conf mode : OFF
OS : Windows 7
Plugins : MenuIcons.dll mimeTools.dll NppConverter.dll nppcrypt.dll NppExec.dll NppExport.dll NppFTP.dll NPPJSONViewer.dll NppSaveAsAdmin.dll PluginManager.dll PyNPP.dll Python Indent.dll PythonScript.dll ReloadButton.dll Translate.dll ZenCoding-Python.dll zoomdisabler.dll
Solution Change python entry in langs.model.xml to:
<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 async await</Keywords>
</Language>And some other changes to actually make it highlight.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
