Daniel Grunwald
670b0d5212
Fixed C# parser bug regarding integer literals between long.MaxValue + 1 and ulong.MaxValue.
...
C# spec 2.4.4.2: Implemented rules regarding int.MinValue and long.MinValue (they get tokenized to Token.Minus + Token.Literal(uint/ulong), but must be parsed as signed int/long)
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2638 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
9dbd77c0d1
C# parser: allow unicode escape sequences in identifier names (yes, "int numb\u0065r;" is valid C#!)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2637 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
9d73b7042e
C# lexer: add support for 32-bit unicode escape sequences (including those that represent surrogate pairs)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2636 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
ab66ebb70c
Fixed SD2-1367: Templates ignore tab/indentation options
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2634 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
3c3ac7e95a
CSharpExpressionFinder: better support for field initializers
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2621 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
a58c7e1f86
More C# code completion fixes.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2618 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
5602eff9e7
NRefactory output visitors: allow inserting specials between attributes and the attributed node.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2615 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
456847adde
Fixed SD2-1365: FxCop can't start if project's name contains spaces
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2614 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
326db119e1
Prevent ArgumentOutOfRangeException in PaintDocumentLine when there are invalid folding markers.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2612 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
4b8d80a68b
Fixed SD2-1363: Exception is thrown using incorrect VB syntax.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2603 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
e49d2b4493
TextEditor: Fixed UpdateToEnd when there are folded regions.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2601 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
e8a0736262
TextAreaMouseHandler: This patch by Troy Simpson fixes an issue with selecting text via double-click, then following-up with a gutter selection.
...
GapTextBufferStrategy: rewrote PlaceGap, fixing a performance issue when deleting text in large documents
DefaultHighlightingStrategy: cache currentLine.Offset because it's not cheap to retrieve (it's an O(lg n) operation)
DefaultDocument.RequestUpdate: when doing a WholeTextArea update, skip all other updates because they would only duplicate the work done by the WholeTextArea update
Except for the load time, the performance editing large .txt files is now good; though the text editor takes a huge amount of memory (tested with a 1,000,000 lines file).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2600 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
5b6a66edab
Applied text editor selection patch by Troy Simpson.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2598 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
c09f7049f4
Fixed forum-17570: text editor saves an additional empty when saving a file.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2597 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
a16fc826ce
EventHandlerCompletitionDataProvider: build event name correctly ("button1.Click"=>"button1_Click"), fixed support for generic delegates (EventHandler<T>)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2594 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
c989cbc19e
Support right-click > add using on type names when the "using" is missing.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2586 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
988c450347
Revert text editor selection code to that currently used by SD 2.1 - keyboard selection was broken by an old version of Troy Simpson's patch.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2570 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
50a59336df
Refactored the interface IAttribute to include useful information (type reference to the attribute type + arguments).
...
Begin work on a Xaml language binding.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2564 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
6331df6b0c
Fixed forum-17502: exception in C# and VB lexer when a hexadecimal literal is larger than ulong.MaxValue.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2559 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
f3787b6fc0
Fixed import of VS2003 projects that were saved with system encoding.
...
Remove unused parameter from TextArea.SetCaretToDesiredColumn.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2542 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
a627f020d5
Disable IME on 64-bit Windows.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2541 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
797979974d
Syntax highlighting: Allow keyword groups without keywords to fix SD2-1354: Saving an empty keyword list using the highlighting editor causes the highlighting file to become invalid
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2539 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
d60a6e2d44
Revert to old DockPanelSuite: version 2.0 is too unstable.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2524 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
86edbfe8e0
Use exception for invalid highlighting definitions instead of displaying a MessageBox.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2523 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
97342e3d49
Fixed snippet parser bugs.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2522 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
ff45445828
Add HtmlSyntaxColorizer sample.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2521 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
cb8f1d1078
Fixed NullReferenceException in ToVBNetConvertVisitor when doing snippet conversion.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2518 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
2586fed6ff
Add SnippetParser class.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2517 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
06388697e0
Update language resources.
...
Implemented SD2-1280/SD2-1320: Scroll completion window to move selected item to the middle
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2516 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
ad7a0b1646
Fixed inferring type argument for a method with an IEnumerable<T> parameter when an array is passed to the method. (backported from 3.0.0.2506)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2510 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
b63d19415b
Begin implementing "aggressive" context-dependent code-completion (Ctrl+Space completion whenever you start to type).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2509 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
57a8cfebb2
Improved C# 3.0 code-completion.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2506 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Christian Hornung
444f6b6341
Fixed the mouse cursor staying hidden after typing when the text area loses focus without the mouse being moved (e.g. when the user types some code and then opens a modal dialog box by using keyboard shortcuts only).
...
Fixed the mouse cursor staying hidden behind the CodeCompletionWindow or InsightWindow until moved out.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2499 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
f5ec7a15b8
Replace List<LineSegment> with an augmented red-black tree that supports all operations (Insert, Remove, GetSegmentByOffset, GetSegmentByIndex and adjusting the line's offsets after insertions) in O(lg n) time (with n=number of lines in document).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2497 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
f4826931df
Refactored code accessing text editor options.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2487 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Markus Palme
17b30fc31d
TextEditor selection patch from Troy Simposon
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2486 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
b95469bf0a
Fixed another problem related to ternary expressions and "is" expressions.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2485 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
0bb578ef69
Fixed forum-16306: NRefactory can't parse ternary expressions containing -1
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2484 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
c9b9615253
Revert text editor selection patch from revision 2469, it was causing problems like http://community.sharpdevelop.net/forums/thread/16254.aspx
...
(but keeping change to TextArea.cs - mouse cursor is arrow when it passes over selected text)
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2482 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
e66c63052e
Change background color of inactive pads.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2474 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
27c4022855
Apply our patches to the docking library; remove patches that are not required anymore from patchnotes.txt
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2473 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
1d0aa5bfe4
Update to DockPanel Suite v2.0.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2472 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
15406c3a1f
Applied text editor selection patch by Troy Simpson.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2469 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
e98edfac8c
Fixed forum-15733: Completion-list off-by-one exception in Boo interpreter
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2454 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
40b92e149e
VB token list: "Off" and "Explicit" are not reserved words.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2453 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
3b20e9e076
VB parser: "Off" and "Explicit" are not reserved words.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2452 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
39bfcc0013
Fixed SD2-1338: VB "Handles" cause cannot be parsed when handling an event on "Me"
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2437 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
5fcfe9be4e
When going to the definition of a CompoundClass, go to the shortest file name. This prevents going to the Designer.cs part instead of the main part.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2436 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
db19e3b31b
Fixed SharpDevelop.Build.VisualBasic.targets to set PlatformFamilyName/PlatformID default values when the .vbproj file does not specify any.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2435 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
cea87a1bcc
Fixed SD2-1329: Index was out of range when cutting text.
...
Replace DoEvents() with a timer to make waiting for the second clipboard set operation non-blocking.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2432 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago