[gtksourceview/gnome-3-18] python3.lang: Add 'async' and 'await' to keywords



commit 7950f68369dc22350f7b3f345af1e239ba1c0e1d
Author: Tobias Schönberg <tobias47n9e gmail com>
Date:   Sun Feb 14 13:15:39 2016 +0100

    python3.lang: Add 'async' and 'await' to keywords
    
    Python 3.5 has added two new keywords to the language
    defined in PEP-0492. The words are currently not
    highlighted. This patch adds 'async' and 'await' to
    the list of keywords.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762026

 data/language-specs/python3.lang |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/data/language-specs/python3.lang b/data/language-specs/python3.lang
index 8c99a69..7f22edc 100644
--- a/data/language-specs/python3.lang
+++ b/data/language-specs/python3.lang
@@ -163,6 +163,8 @@
 
         <context ref="python:keywords"/>
         <context id="3x-only-keywords" style-ref="keyword">
+          <keyword>async</keyword>
+          <keyword>await</keyword>
           <keyword>nonlocal</keyword>
         </context>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]