SynEdit: Highlighter JS, add await and async. Issue #0030398

git-svn-id: trunk@52980 -
This commit is contained in:
martin 2016-09-16 00:21:36 +00:00
parent e551887b0f
commit f1a3d2d51e

View File

@ -756,7 +756,8 @@ begin
if KeyComp('class') then Result := tkKey else
if KeyComp('float') then Result := tkKey else
if KeyComp('Float') then Result := tkNonReservedKey else
if KeyComp('pageY') then Result := tkNonReservedKey else Result := tkIdentifier;
if KeyComp('await') then Result := tkKey else
if KeyComp('pageY') then Result := tkNonReservedKey else Result := tkIdentifier;
end;
function TSynJScriptSyn.Func55: TtkTokenKind;
@ -822,7 +823,8 @@ begin
if KeyComp('border') then Result := tkNonReservedKey else
if KeyComp('host') then Result := tkNonReservedKey else
if KeyComp('frames') then Result := tkNonReservedKey else
if KeyComp('right') then Result := tkNonReservedKey else Result := tkIdentifier;
if KeyComp('async') then Result := tkKey else
if KeyComp('right') then Result := tkNonReservedKey else Result := tkIdentifier;
end;
function TSynJScriptSyn.Func63: TtkTokenKind;