dart_highlight_rules : add assert to keywordControl
"assert" is a reserved word and a statement in the Dart language (as opposed to a built-in function call) as described in the spec: https://www.dartlang.org/docs/spec/latest/dart-language-specification.html#h.cb5i0axenow6
This commit is contained in:
parent
3631e7f720
commit
06db67de16
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ var DartHighlightRules = function() {
|
|||
|
||||
var constantLanguage = "true|false|null";
|
||||
var variableLanguage = "this|super";
|
||||
var keywordControl = "try|catch|finally|throw|break|case|continue|default|do|else|for|if|in|return|switch|while|new";
|
||||
var keywordControl = "try|catch|finally|throw|assert|break|case|continue|default|do|else|for|if|in|return|switch|while|new";
|
||||
var keywordDeclaration = "abstract|class|extends|external|factory|implements|get|native|operator|set|typedef|with";
|
||||
var storageModifier = "static|final|const";
|
||||
var storageType = "void|bool|num|int|double|dynamic|var|String";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue