Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the issue bracket highlight incorrect when the symbol is under … #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
65 changes: 51 additions & 14 deletions Source/EditorOptFrm.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -621,19 +621,32 @@ object EditorOptForm: TEditorOptForm
TabOrder = 3
CodeFolding.ShowCollapsedLine = True
UseCodeFolding = False
Gutter.AutoSize = True
Gutter.BorderStyle = gbsNone
Gutter.DigitCount = 2
Gutter.Font.Charset = DEFAULT_CHARSET
Gutter.Font.Color = clWindowText
Gutter.Font.Height = -12
Gutter.Font.Name = 'Courier New'
Gutter.Font.Style = []
Gutter.LeftOffset = 4
Gutter.RightOffset = 21
Gutter.ShowLineNumbers = True
Gutter.Width = 32
Gutter.GradientEndColor = clBackground
Gutter.Bands = <
item
Kind = gbkMarks
Visible = True
Width = 13
end
item
Kind = gbkLineNumbers
end
item
Kind = gbkFold
end
item
Kind = gbkMargin
Visible = True
Width = 3
end>
HideSelection = True
Highlighter = cpp
Lines.Strings = (
Expand Down Expand Up @@ -663,10 +676,6 @@ object EditorOptForm: TEditorOptForm
OnSpecialLineColors = CppEditSpecialLineColors
OnStatusChange = cppEditStatusChange
RemovedKeystrokes = <
item
Command = ecDeleteLastChar
ShortCut = 8200
end
item
Command = ecLineBreak
ShortCut = 8205
Expand Down Expand Up @@ -860,16 +869,30 @@ object EditorOptForm: TEditorOptForm
TabStop = False
CodeFolding.ShowCollapsedLine = True
UseCodeFolding = False
Gutter.AutoSize = True
Gutter.BorderStyle = gbsNone
Gutter.Font.Charset = DEFAULT_CHARSET
Gutter.Font.Color = clWindowText
Gutter.Font.Height = -12
Gutter.Font.Name = 'Courier New'
Gutter.Font.Style = []
Gutter.LeftOffset = 4
Gutter.RightOffset = 21
Gutter.ShowLineNumbers = True
Gutter.Bands = <
item
Kind = gbkMarks
Visible = True
Width = 13
end
item
Kind = gbkLineNumbers
end
item
Kind = gbkFold
end
item
Kind = gbkMargin
Visible = True
Width = 3
end>
Highlighter = cpp
Options = [eoAutoIndent, eoHideShowScrollbars, eoKeepCaretX, eoSmartTabs, eoTabIndent, eoTrimTrailingSpaces]
TabWidth = 4
Expand Down Expand Up @@ -933,16 +956,30 @@ object EditorOptForm: TEditorOptForm
TabStop = False
CodeFolding.ShowCollapsedLine = True
UseCodeFolding = False
Gutter.AutoSize = True
Gutter.BorderStyle = gbsNone
Gutter.Font.Charset = DEFAULT_CHARSET
Gutter.Font.Color = clWindowText
Gutter.Font.Height = -12
Gutter.Font.Name = 'Courier New'
Gutter.Font.Style = []
Gutter.LeftOffset = 4
Gutter.RightOffset = 21
Gutter.ShowLineNumbers = True
Gutter.Bands = <
item
Kind = gbkMarks
Visible = True
Width = 13
end
item
Kind = gbkLineNumbers
end
item
Kind = gbkFold
end
item
Kind = gbkMargin
Visible = True
Width = 3
end>
Highlighter = cpp
Options = [eoAutoIndent, eoHideShowScrollbars, eoKeepCaretX, eoSmartTabs, eoTabIndent, eoTrimTrailingSpaces]
TabWidth = 4
Expand Down
2 changes: 1 addition & 1 deletion Source/EditorOptFrm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface
Dialogs, ComCtrls, StdCtrls, ExtCtrls, Spin,
SynEdit, SynEditHighlighter, SynHighlighterCpp,
Buttons, ClassBrowser, CppParser, CppTokenizer, StrUtils, Grids,
CppPreprocessor;
CppPreprocessor, SynEditCodeFolding;

type
// Keep history of what we have accessed (does not mean changed)
Expand Down
18 changes: 17 additions & 1 deletion Source/LangFrm.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,23 @@ object LangForm: TLangForm
Gutter.Font.Height = -11
Gutter.Font.Name = 'Courier New'
Gutter.Font.Style = []
Gutter.RightOffset = 21
Gutter.Bands = <
item
Kind = gbkMarks
Visible = True
Width = 13
end
item
Kind = gbkLineNumbers
end
item
Kind = gbkFold
end
item
Kind = gbkMargin
Visible = True
Width = 3
end>
Lines.Strings = (
'#include <iostream>'
''
Expand Down
13 changes: 13 additions & 0 deletions Source/VCL/SynEdit/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.pas text
*.dfm text

# Declare files that will always have CRLF line endings on checkout.

# Denote all files that are truly binary and should not be modified.
*.exe binary
*.res binary
12 changes: 1 addition & 11 deletions Source/VCL/SynEdit/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*.rsm
*.stat
*.map
*.lib

# Generated source #
###################
Expand All @@ -18,11 +17,6 @@
# Backup files #
###################
*.~*
*.bak
*.#00
*.pch
*.Patch
/__history

# IDE Files #
###################
Expand All @@ -42,8 +36,4 @@
/Win32
/Win64
/OSX32

# C++ Files #
###################
*.prjmgc

/__history