Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,112
    • Issues 2,112
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #34410
Closed
Open
Issue created Oct 12, 2018 by FPC Admin account@fpc_adminOwner

Wrongly highlighted and outlined code at some settings

Original Reporter info from Mantis: Blaazen @Blaazen
  • Reporter name: Vojtech Cihak

Description:

Code in Source Editor is highlighted wrongly in some specific settings.
This issue is not about highlighting of else/otherwise inside case..of statement.

var i: Integer;
begin
  case i of
    0: ;
    1: ;
    otherwise ;
  end;
  begin case i of
          0: ;
          1: ;
          else ;
        end;
  end;
  begin case i of
          0: ;
          1: ;
          otherwise ;
        end;
  end;
end;

Steps to reproduce:

See attachments. Settings and issue are:
1)
procedure: Markup
begin/end (procedure): Markup & Outline
begin/end (nested): Markup & Outline
case: Off

issue: "begins" are wrongly paired with "ends" of case..of statements.


procedure: Markup & Outline
begin/end (procedure): Markup
begin/end (nested): Markup & Outline
case: Markup & Outline

issue: the last "end" is highlighted and the outline(s) are on bad position

Additional information:

Lazarus 2.1.0 r59293M FPC 3.3.1 x86_64-linux-qt

Mantis conversion info:

  • Mantis ID: 34410
  • OS: Linux
  • OS Build: Chakra 64-bit
  • Build: 59293
  • Platform: amd64
  • Version: 1.9 (SVN)
Assignee
Assign to
Time tracking