Commit Graph

60 Commits

Author SHA1 Message Date
hjk
0ee6115998 qmljshighlighter: un-templatize setFormats()
This is used excatly once.

ReviewedBy: Kai Koehne
2010-06-04 11:17:55 +02:00
Christian Kamm
68cec6a7c7 QmlJS: Fix folding information for multi-line comments after edits.
Since the highlighter doesn't run on the whole file, only on the changed
line, we need to store the information whether a block starts in a
multi-line comment.

Reviewed-by: Erik Verbruggen
2010-05-28 13:50:52 +02:00
Christian Kamm
57f2b3e44d QmlJS: Allow folding of multi-line comments.
This also makes the editor auto-fold the license comment.

Task-number: QTCREATORBUG-1455
Reviewed-by: Erik Verbruggen
2010-05-27 12:56:44 +02:00
mae
e07c34017e Rework code folding
The new and cleaner foldingIndent in the block user data will
make it easier to support other kinds of indentation for various
other programming languages (like Python).
2010-05-20 15:11:31 +02:00
Christian Kamm
e145c6ae53 QmlJSEditor: Fix brace matching for "A on b {" syntax.
Reviewed-by: Roberto Raggi
2010-04-15 15:38:20 +02:00
Christian Kamm
b19c51d609 QmlJSEditor: Highlight b in 'A on b {' as a property.
Fixes 4f1d5ce196

Task-number: QTCREATORBUG-893
Reviewed-by: Erik Verbruggen
2010-04-07 11:45:00 +02:00
Christian Kamm
4f1d5ce196 QmlJSEditor: Highlight 'A on B {' correctly.
* Add 'on' qml-keyword.
* Highlight the last identifier before 'on' as a type.

Task-number: QTCREATORBUG-893
Reviewed-by: Erik Verbruggen
2010-04-07 11:09:26 +02:00
Lasse Holmstedt
90abf1bf2d Highlighting and more sensible watchers to qml inspector 2010-03-17 11:38:09 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Roberto Raggi
8fb82ef792 Merge qmljshighlighter.* with qmlhighlighter.*. 2010-02-15 12:39:30 +01:00