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:
Christian Kamm
2011-05-20 14:48:05 +02:00
parent 0350314b22
commit f027b1da87
4 changed files with 102 additions and 12 deletions

View File

@@ -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();