forked from qt-creator/qt-creator
QmlJS: Make the Scanner recognize regular expression literals.
Task-number: QTCREATORBUG-4566 Change-Id: I48b08f8eee79b25d0ebe186b996cdcb8f1979e3d Reviewed-on: http://codereview.qt.nokia.com/38 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -59,7 +59,8 @@ public:
|
||||
Colon,
|
||||
Comma,
|
||||
Dot,
|
||||
Delimiter
|
||||
Delimiter,
|
||||
RegExp
|
||||
};
|
||||
|
||||
inline Token(): offset(0), length(0), kind(EndOfFile) {}
|
||||
@@ -82,7 +83,8 @@ public:
|
||||
Normal = 0,
|
||||
MultiLineComment = 1,
|
||||
MultiLineStringDQuote = 2,
|
||||
MultiLineStringSQuote = 3
|
||||
MultiLineStringSQuote = 3,
|
||||
RegexpMayFollow = 4 // flag that may be combined with the above
|
||||
};
|
||||
|
||||
Scanner();
|
||||
|
||||
Reference in New Issue
Block a user