[gtksourceview] javascript.lang: Fix highlighting for "keyword" properties/methods
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] javascript.lang: Fix highlighting for "keyword" properties/methods
- Date: Mon, 26 Nov 2018 23:17:59 +0000 (UTC)
commit fef6948e98a6bcb29d1b99da8834e05a8f84d8dc
Author: Jeffery To <jeffery to gmail com>
Date: Wed Oct 10 20:22:16 2018 +0800
javascript.lang: Fix highlighting for "keyword" properties/methods
Match keywords after properties/methods so that property/method names
that are also keywords (e.g. catch, delete) are highlighted correctly
data/language-specs/javascript.lang | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/language-specs/javascript.lang b/data/language-specs/javascript.lang
index 945c2960..9c6b0d2e 100644
--- a/data/language-specs/javascript.lang
+++ b/data/language-specs/javascript.lang
@@ -799,7 +799,6 @@
<context ref="undefined-value"/>
<context ref="null-value"/>
<context ref="boolean"/>
- <context ref="keywords"/>
<context ref="types"/>
<context ref="global-functions"/>
<context ref="array-properties"/>
@@ -838,6 +837,7 @@
<context ref="weakmap-methods"/>
<context ref="weakset-methods"/>
<context ref="constructors"/>
+ <context ref="keywords"/>
<context ref="future-words"/>
<context ref="regex-simple"/>
</include>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]