Commit Graph

11 Commits

Author SHA1 Message Date
Thorbjørn Lindeijer
d20cdc64e3 Merge remote branch 'origin/1.3' 2009-12-08 11:26:05 +01:00
Thorbjørn Lindeijer
9839dea6bc Fixed autoindent when using tabs instead of spaces
Several special cases that are handled by the CPPEditor did not take
into account code that was using tab characters.

Task-number: QTCREATORBUG-292
Reviewed-by: Roberto Raggi
2009-12-08 11:09:11 +01:00
Erik Verbruggen
72d4493fc2 Added scope calculation for Objective-C classes. 2009-11-11 09:21:06 +01:00
Robert Loehning
e68753b48b Fixed index out of range.
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-11-02 19:14:40 +01:00
Roberto Raggi
42c676d19a Added BackwardsScanner::mid(tokenIndex). Mid() returns a substring starting from the position of the given token. 2009-09-21 17:38:25 +02:00
Roberto Raggi
a49395a0ea Made the indenter more Qt friendly. Added support for moc keywords. 2009-09-21 16:10:17 +02:00
Roberto Raggi
6c9670c3db Use the backward scanner to indent labeled statements, ctor-initializers and access specifiers. 2009-09-21 15:14:28 +02:00
Roberto Raggi
81cac3cc49 Introduced BackwardsScanner::LA(n). LA(n) returns the n-th lookhead token. 2009-09-18 12:28:15 +02:00
Roberto Raggi
82b80b9e39 Automagically insert matching characters. 2009-09-17 17:58:00 +02:00
Roberto Raggi
dfa6be721d Added the helper class MatchingText and use it to automagically insert text for curly braces. 2009-09-17 15:51:15 +02:00
Roberto Raggi
71c46fbc54 Added BackwardsScanner 2009-09-17 12:29:22 +02:00