Ticket #3793: 0001-EcmaScript-2015-support-for-JavaScript-highlighter.patch

File 0001-EcmaScript-2015-support-for-JavaScript-highlighter.patch, 2.5 KB (added by mortiy, 7 years ago)

ES2015 Patch

  • misc/syntax/js.syntax

    From 80f7bd0938b3e0a81eef2c400463b2ad8e612134 Mon Sep 17 00:00:00 2001
    From: Oleksandr Sidko <mortiy@gmail.com>
    Date: Thu, 16 Mar 2017 12:42:36 +0200
    Subject: [PATCH] EcmaScript 2015 support for JavaScript highlighter
    
    ---
     misc/syntax/js.syntax | 23 +++++++++++++++++++++++
     1 file changed, 23 insertions(+)
    
    diff --git a/misc/syntax/js.syntax b/misc/syntax/js.syntax
    index ee82326f2..9f9789731 100644
    a b context default 
    2626    keyword whole caller yellow 
    2727    keyword whole case yellow 
    2828    keyword whole catch yellow 
     29    keyword whole class yellow 
     30    keyword whole const yellow 
    2931    keyword whole constructor yellow 
    3032    keyword whole continue yellow 
    3133    keyword whole else yellow 
     34    keyword whole extends yellow 
     35    keyword whole export yellow 
    3236    keyword whole default yellow 
    3337    keyword whole delete yellow 
    3438    keyword whole for yellow 
    3539    keyword whole function yellow 
    3640    keyword whole if yellow 
     41    keyword whole import yellow 
    3742    keyword whole in yellow 
    3843    keyword whole instanceof yellow 
     44    keyword whole let yellow 
    3945    keyword whole new yellow 
     46    keyword whole of yellow 
    4047    keyword whole prototype yellow 
    4148    keyword whole return yellow 
    4249    keyword whole switch yellow 
    context default 
    4754    keyword whole var yellow 
    4855    keyword whole while yellow 
    4956    keyword whole with yellow 
     57    keyword whole yield yellow 
    5058 
    5159    #========================= 
    5260    # Objects 
    context default 
    6169    keyword whole Global yellow 
    6270    keyword whole Image yellow 
    6371    keyword whole Math yellow 
     72    keyword whole Map yellow 
    6473    keyword whole Number yellow 
    6574    keyword whole Object yellow 
     75    keyword whole Promise yellow 
     76    keyword whole Proxy yellow 
     77    keyword whole Reflect yellow 
     78    keyword whole Set yellow 
     79    keyword whole Symbol yellow 
    6680    keyword whole TextStream yellow 
    6781    keyword whole RegExp yellow 
    6882    keyword whole VBArray yellow 
     83    keyword whole WeakMap yellow 
     84    keyword whole WeakSet yellow 
    6985 
    7086    #========================= 
    7187    # Most common functions 
    context default 
    106122 
    107123    #========================= 
    108124    # Special symbols 
     125    keyword => brightcyan 
    109126    keyword \. yellow 
    110127    keyword \* yellow 
    111128    keyword \+ yellow 
    context ' ' green 
    180197    keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen 
    181198 
    182199    keyword " brightgreen 
     200 
     201context ` ` green 
     202    spellcheck 
     203    keyword \\\{\\'"abtnvfr\} brightgreen 
     204    keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen 
     205    keyword ${*} yellow