Daniel Grunwald
d2315a13c0
Worked on VB<->C# converter.
...
Fixed SD2-980: VB 'For Each' statement not converted correcly to C#
Text editor: Use TextLocation struct instead of System.Drawing.Point to represent line/column pairs.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2659 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
3d8d7af120
Worked on VB->C# converter.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2657 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
1ea9ac7b61
More improvements for the C#->VB converter.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2656 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
b78db77094
Improved C#->VB converter.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2655 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
d3ebdfcab4
Worked on C# -> VB converter.
...
Fixed SD2-1022: Delegates usage not converted correctly from C# to VB.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2654 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
64e7f0645d
Fixed SD2-803: Implicit interface implementations are not converted correctly to VB
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2653 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
83b98bd73d
Fixed SD2-1028: local variables should be always initialized when converting code from VB to C#.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2652 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
0227db2d23
Move Search&Replace into an AddIn.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2650 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
2213306f2d
Set correct caret column when pressing return.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2643 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
50015a2b7b
Fixed SD2-1298: Converting single assignment and comparison statement from C# to VB.NET
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2642 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
d5b3330f71
Fixed SD2-1355: FormattingStrategy: meaning of IndentLine, FormatLine return value
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2640 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
5f9f3db75c
Update string resources.
...
Improve lexer code determining the type of integer literals.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2639 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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
18 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