Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
FPC
Lazarus
Lazarus
Commits
ba00570c
Commit
ba00570c
authored
Aug 23, 2012
by
Martin
Browse files
SynEdit TSynMultiSyn: Fix CaseSensitivity for Sheme marker. Issue
#22693
git-svn-id: trunk@38339 -
parent
8c6f49f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/synedit/synhighlightermulti.pas
View file @
ba00570c
...
...
@@ -54,7 +54,7 @@ uses
Classes
,
Graphics
,
SysUtils
,
LCLProc
,
math
,
SynRegExpr
,
SynEditStrConst
,
SynEditTypes
,
SynEditTextBase
,
SynEditHighlighter
,
{$IFDEF SynDebugMultiHL}
LazLoggerBase
{$ELSE}
LazLoggerDummy
{$ENDIF}
{$IFDEF SynDebugMultiHL}
LazLoggerBase
{$ELSE}
LazLoggerDummy
{$ENDIF}
,
LazUTF8
;
type
...
...
@@ -1739,7 +1739,7 @@ end;
function
TSynHighlighterMultiSchemeList
.
GetConvertedCurrentLine
:
String
;
begin
if
FConvertedCurrentLine
=
''
then
FConvertedCurrentLine
:=
Ansi
UpperCase
(
FCurrentLine
);
FConvertedCurrentLine
:=
UTF8
UpperCase
(
FCurrentLine
);
Result
:=
FConvertedCurrentLine
;
end
;
...
...
@@ -1749,6 +1749,7 @@ var
begin
if
FCurrentLine
=
AValue
then
exit
;
FCurrentLine
:=
AValue
;
FConvertedCurrentLine
:=
''
;
for
i
:=
0
to
Count
-
1
do
Items
[
i
].
ClearLinesSet
;
end
;
...
...
@@ -1782,30 +1783,30 @@ end;
function
TSynHighlighterMultiScheme
.
GetConvertedLine
:
String
;
begin
if
FCaseSensitive
then
Result
:=
TSynHighlighterMultiSchemeList
(
Collection
).
Converted
CurrentLine
Result
:=
TSynHighlighterMultiSchemeList
(
Collection
).
CurrentLine
else
Result
:=
TSynHighlighterMultiSchemeList
(
Collection
).
CurrentLine
;
Result
:=
TSynHighlighterMultiSchemeList
(
Collection
).
Converted
CurrentLine
;
end
;
function
TSynHighlighterMultiScheme
.
GetConvertedEndExpr
:
String
;
begin
if
not
FCaseSensitive
then
if
FCaseSensitive
then
Result
:=
FEndExpr
else
begin
if
FConvertedEndExpr
=
''
then
FConvertedEndExpr
:=
Ansi
UpperCase
(
FEndExpr
);
Result
:=
FConvertedEndExpr
FConvertedEndExpr
:=
Utf8
UpperCase
(
FEndExpr
);
Result
:=
FConvertedEndExpr
;
end
;
end
;
function
TSynHighlighterMultiScheme
.
GetConvertedStartExpr
:
String
;
begin
if
not
FCaseSensitive
then
if
FCaseSensitive
then
Result
:=
FStartExpr
else
begin
if
FConvertedStartExpr
=
''
then
FConvertedStartExpr
:=
Ansi
UpperCase
(
FStartExpr
);
Result
:=
FConvertedStartExpr
FConvertedStartExpr
:=
Utf8
UpperCase
(
FStartExpr
);
Result
:=
FConvertedStartExpr
;
end
;
end
;
...
...
@@ -1925,6 +1926,7 @@ begin
fCaseSensitive
:=
Value
;
FStartExprScanner
.
Expression
:=
GetConvertedStartExpr
;
FEndExprScanner
.
Expression
:=
GetConvertedEndExpr
;
ClearLinesSet
;
FNeedHLScan
:=
True
;
Changed
(
False
);
FNeedHLScan
:=
False
;
...
...
FPC Admin account
@fpc_admin
mentioned in issue
#22693 (closed)
·
Jul 28, 2021
mentioned in issue
#22693 (closed)
mentioned in issue #22693
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment