Skip to content

Add Python 3.5 syntax to Python in langs.model.xml #2640

@AraHaan

Description

@AraHaan

Description of the Issue

Notepad++ does not know about the Python 3.5+ syntax of async def and await

Steps to Reproduce the Issue

  1. Get a Python 3.5+ Script.
  2. Open it with Notepad++
  3. 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 

197799fcb12b0a176e763e45852e4228 1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions