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 |
26 | 26 | keyword whole caller yellow |
27 | 27 | keyword whole case yellow |
28 | 28 | keyword whole catch yellow |
| 29 | keyword whole class yellow |
| 30 | keyword whole const yellow |
29 | 31 | keyword whole constructor yellow |
30 | 32 | keyword whole continue yellow |
31 | 33 | keyword whole else yellow |
| 34 | keyword whole extends yellow |
| 35 | keyword whole export yellow |
32 | 36 | keyword whole default yellow |
33 | 37 | keyword whole delete yellow |
34 | 38 | keyword whole for yellow |
35 | 39 | keyword whole function yellow |
36 | 40 | keyword whole if yellow |
| 41 | keyword whole import yellow |
37 | 42 | keyword whole in yellow |
38 | 43 | keyword whole instanceof yellow |
| 44 | keyword whole let yellow |
39 | 45 | keyword whole new yellow |
| 46 | keyword whole of yellow |
40 | 47 | keyword whole prototype yellow |
41 | 48 | keyword whole return yellow |
42 | 49 | keyword whole switch yellow |
… |
… |
context default |
47 | 54 | keyword whole var yellow |
48 | 55 | keyword whole while yellow |
49 | 56 | keyword whole with yellow |
| 57 | keyword whole yield yellow |
50 | 58 | |
51 | 59 | #========================= |
52 | 60 | # Objects |
… |
… |
context default |
61 | 69 | keyword whole Global yellow |
62 | 70 | keyword whole Image yellow |
63 | 71 | keyword whole Math yellow |
| 72 | keyword whole Map yellow |
64 | 73 | keyword whole Number yellow |
65 | 74 | 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 |
66 | 80 | keyword whole TextStream yellow |
67 | 81 | keyword whole RegExp yellow |
68 | 82 | keyword whole VBArray yellow |
| 83 | keyword whole WeakMap yellow |
| 84 | keyword whole WeakSet yellow |
69 | 85 | |
70 | 86 | #========================= |
71 | 87 | # Most common functions |
… |
… |
context default |
106 | 122 | |
107 | 123 | #========================= |
108 | 124 | # Special symbols |
| 125 | keyword => brightcyan |
109 | 126 | keyword \. yellow |
110 | 127 | keyword \* yellow |
111 | 128 | keyword \+ yellow |
… |
… |
context ' ' green |
180 | 197 | keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen |
181 | 198 | |
182 | 199 | keyword " brightgreen |
| 200 | |
| 201 | context ` ` green |
| 202 | spellcheck |
| 203 | keyword \\\{\\'"abtnvfr\} brightgreen |
| 204 | keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen |
| 205 | keyword ${*} yellow |