summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordevoncarew1 <devoncarew1>2016-08-28 03:30:42 +0000
committerdevoncarew1 <devoncarew1>2016-08-28 03:30:42 +0000
commitb0b0ff2a0c3dc3990c409501d1ca38596d031939 (patch)
tree3d27693bd5cdb2b42406b4d0a0a6eeb778cf58f6
parent56e75b33d66738b072f9f5525f3af4a8ba863d8b (diff)
downloadpygments-b0b0ff2a0c3dc3990c409501d1ca38596d031939.tar.gz
javascript.py edited online with Bitbucket
-rw-r--r--pygments/lexers/javascript.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pygments/lexers/javascript.py b/pygments/lexers/javascript.py
index a23ba184..6bd97dbe 100644
--- a/pygments/lexers/javascript.py
+++ b/pygments/lexers/javascript.py
@@ -366,9 +366,10 @@ class DartLexer(RegexLexer):
(r'\b(assert|break|case|catch|continue|default|do|else|finally|for|'
r'if|in|is|new|return|super|switch|this|throw|try|while)\b',
Keyword),
- (r'\b(abstract|const|extends|factory|final|get|implements|'
- r'native|operator|set|static|typedef|var)\b', Keyword.Declaration),
- (r'\b(bool|double|Dynamic|int|num|Object|String|void)\b', Keyword.Type),
+ (r'\b(abstract|async|await|const|extends|factory|final|get|'
+ r'implements|native|operator|set|static|sync|typedef|var|with|'
+ r'yield)\b', Keyword.Declaration),
+ (r'\b(bool|double|dynamic|int|num|Object|String|void)\b', Keyword.Type),
(r'\b(false|null|true)\b', Keyword.Constant),
(r'[~!%^&*+=|?:<>/-]|as\b', Operator),
(r'[a-zA-Z_$]\w*:', Name.Label),