mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-25 21:56:19 +02:00
SynEdit: Highlighter JS, add await and async. Issue #0030398
git-svn-id: trunk@52980 -
This commit is contained in:
parent
e551887b0f
commit
f1a3d2d51e
@ -756,7 +756,8 @@ begin
|
|||||||
if KeyComp('class') then Result := tkKey else
|
if KeyComp('class') then Result := tkKey else
|
||||||
if KeyComp('float') then Result := tkKey else
|
if KeyComp('float') then Result := tkKey else
|
||||||
if KeyComp('Float') then Result := tkNonReservedKey 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;
|
end;
|
||||||
|
|
||||||
function TSynJScriptSyn.Func55: TtkTokenKind;
|
function TSynJScriptSyn.Func55: TtkTokenKind;
|
||||||
@ -822,7 +823,8 @@ begin
|
|||||||
if KeyComp('border') then Result := tkNonReservedKey else
|
if KeyComp('border') then Result := tkNonReservedKey else
|
||||||
if KeyComp('host') then Result := tkNonReservedKey else
|
if KeyComp('host') then Result := tkNonReservedKey else
|
||||||
if KeyComp('frames') 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;
|
end;
|
||||||
|
|
||||||
function TSynJScriptSyn.Func63: TtkTokenKind;
|
function TSynJScriptSyn.Func63: TtkTokenKind;
|
||||||
|
Loading…
Reference in New Issue
Block a user