Commit Graph

26 Commits

Author SHA1 Message Date
Roberto Raggi
4d7444e6cd Fixed the insertion of matching braces when the token at the left of the cursor is a string literal. 2010-02-10 16:24:23 +01:00
Roberto Raggi
3d44c5621d Improved completion of JavaScript expressions. 2010-02-09 11:37:58 +01:00
Roberto Raggi
967ed09c29 Initial support of `Follow symbol under cursor' for QML/JS. 2010-02-09 11:37:58 +01:00
Roberto Raggi
14ffb1e465 Some refactoring needed to create ranges for JavaScript functions. 2010-02-02 16:36:14 +01:00
Roberto Raggi
fac977a5bd Try to get the type from a qualified-id. 2010-02-02 15:02:21 +01:00
Roberto Raggi
d22de18fae Introduced SemanticInfo::nodeUnderCursor(). 2010-02-02 13:19:27 +01:00
Roberto Raggi
f8ed5c58f0 Check the document's revision when creating links. 2010-02-02 13:19:26 +01:00
Roberto Raggi
0bb575b1f2 Create a link for the QML/JS expression under cursor. 2010-02-01 16:18:27 +01:00
Roberto Raggi
460c47f5c6 Introduced SemanticInfo::declaringMember(pos). 2010-02-01 16:18:26 +01:00
Roberto Raggi
6fe1f5b96c Made the error recovering more robust. 2010-01-28 16:29:45 +01:00
Roberto Raggi
a72230feee Reduced the interval UPDATE_DOCUMENT_DEFAULT_INTERVAL. 2010-01-28 15:07:15 +01:00
Roberto Raggi
39c2575ab3 Removed obsolete code
Done with: Erik
2010-01-27 14:37:24 +01:00
Erik Verbruggen
8ecc80ec4c Generalized ExpressionUnderCursor and got rid of duplicate code.
Done-with: Roberto Raggi
2010-01-27 12:41:01 +01:00
Roberto Raggi
1e6a0523a1 Moved QmlJSTextEditor::m_declarations. 2010-01-26 14:26:26 +01:00
Roberto Raggi
5cff896fa8 Get rid off QmlJSEditor::m_idRevisions & co. 2010-01-26 14:14:01 +01:00
Roberto Raggi
e622d70617 There's no need to store the diagnostic messages in the editor.
Store the error message in the QTextCharFormat of the extra selection.
2010-01-26 14:03:37 +01:00
Roberto Raggi
fbd624d170 Update the ranges also for recovered ASTs. 2010-01-26 12:09:28 +01:00
Roberto Raggi
c9efafcb98 Introduced ranges and versioning of QML/JS documents. 2010-01-25 14:18:53 +01:00
Roberto Raggi
60ad6c478c Moved QmlJSScanner::Token in the QmlJS namespace. 2010-01-19 12:54:17 +01:00
Christian Kamm
f812b5bf8c Fix the drop-down symbol list for javascript.
It lists the top level function and variable declarations again.
2010-01-19 10:31:42 +01:00
Roberto Raggi
c943d8e4f1 Renamed classes and files to use the QmlJS prefix. 2010-01-18 16:59:20 +01:00
Erik Verbruggen
ed4118628d Changed the QScriptHighlighter & QScriptIndenter namespaces. 2010-01-18 14:12:45 +01:00
Erik Verbruggen
0f8126f62d Changed the QML/JS editor to treat .qs/.js files as JavaScript, and invoke the appropriate parser for it.
Reviewed-by: Christian Kamm
2010-01-18 13:40:47 +01:00
Roberto Raggi
e790363fda Check the lookahead character before inserting the matching quote or brace. 2010-01-18 11:24:38 +01:00
Erik Verbruggen
062fa8e783 Added mime-type for JS files to the QMLJS text editor. 2010-01-15 17:41:39 +01:00
Erik Verbruggen
96e31c2a0f Started merging the JS and QML editor plug-ins. 2010-01-15 17:20:19 +01:00