mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 00:00:24 +02:00
jcf: sync with r746 (misc fixes in comments)
git-svn-id: trunk@17880 -
This commit is contained in:
parent
52c3090688
commit
a4326b440c
@ -1018,7 +1018,7 @@ begin
|
|||||||
if pbNestedInClass and (leFirstTokenType in ClassVisibility) then
|
if pbNestedInClass and (leFirstTokenType in ClassVisibility) then
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// can be followed by an operator decl in Lazarus
|
// can be followed by an operator decl in FreePascal
|
||||||
if leFirstTokenType = ttOperator then
|
if leFirstTokenType = ttOperator then
|
||||||
break;
|
break;
|
||||||
end;
|
end;
|
||||||
@ -2275,7 +2275,7 @@ begin
|
|||||||
if fcTokenList.FirstSolidTokenType = ttOpenBracket then
|
if fcTokenList.FirstSolidTokenType = ttOpenBracket then
|
||||||
RecogniseFormalParameters;
|
RecogniseFormalParameters;
|
||||||
|
|
||||||
// lazarus can give a name to "result" here
|
// FreePascal can give a name to "result" here
|
||||||
if fcTokenList.FirstSolidTokenType <> ttColon then
|
if fcTokenList.FirstSolidTokenType <> ttColon then
|
||||||
begin
|
begin
|
||||||
RecogniseIdentifier(false, idAny);
|
RecogniseIdentifier(false, idAny);
|
||||||
|
@ -738,7 +738,7 @@ begin
|
|||||||
AddKeyword('@', wtOperator, ttAtSign);
|
AddKeyword('@', wtOperator, ttAtSign);
|
||||||
AddKeyword('^', wtOperator, ttHat);
|
AddKeyword('^', wtOperator, ttHat);
|
||||||
AddKeyword('*', wtOperator, ttTimes);
|
AddKeyword('*', wtOperator, ttTimes);
|
||||||
AddKeyword('**', wtOperator, ttExponent); // in Lazarus
|
AddKeyword('**', wtOperator, ttExponent); // in FreePascal
|
||||||
AddKeyword('/', wtOperator, ttFloatDiv);
|
AddKeyword('/', wtOperator, ttFloatDiv);
|
||||||
AddKeyword('+', wtOperator, ttPlus);
|
AddKeyword('+', wtOperator, ttPlus);
|
||||||
AddKeyword('-', wtOperator, ttMinus);
|
AddKeyword('-', wtOperator, ttMinus);
|
||||||
|
@ -516,7 +516,7 @@ function PathRemoveExtension(const Path: string): string;
|
|||||||
var
|
var
|
||||||
p: Integer;
|
p: Integer;
|
||||||
begin
|
begin
|
||||||
// from lazarus FileUtil
|
// from Lazarus FileUtil
|
||||||
Result := Path;
|
Result := Path;
|
||||||
p := Length(Result);
|
p := Length(Result);
|
||||||
while (p>0) do
|
while (p>0) do
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
This directory contains a copy (sometimes modified) of r743 jcf2 svn tree: https://jedicodeformat.svn.sourceforge.net/svnroot/jedicodeformat/trunk/CodeFormat/Jcf2
|
This directory contains a copy (sometimes modified) of r746 jcf2 svn tree: https://jedicodeformat.svn.sourceforge.net/svnroot/jedicodeformat/trunk/CodeFormat/Jcf2
|
||||||
|
|
||||||
Only command line utility works currently.
|
Only command line utility works currently.
|
Loading…
Reference in New Issue
Block a user