forked from qt-creator/qt-creator
Updated the QML/JS parser.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the QtDeclarative module of the Qt Toolkit.
|
||||
** This file is part of the QtCore module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** No Commercial Usage
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the QtDeclarative module of the Qt Toolkit.
|
||||
** This file is part of the QtCore module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** No Commercial Usage
|
||||
@@ -61,7 +61,7 @@ QT_BEGIN_NAMESPACE
|
||||
class QmlJSGrammar
|
||||
{
|
||||
public:
|
||||
enum {
|
||||
enum VariousConstants {
|
||||
EOF_SYMBOL = 0,
|
||||
REDUCE_HERE = 100,
|
||||
SHIFT_THERE = 99,
|
||||
|
||||
@@ -56,9 +56,11 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
QT_QML_BEGIN_NAMESPACE
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
extern double qstrtod(const char *s00, char const **se, bool *ok);
|
||||
QT_END_NAMESPACE
|
||||
|
||||
QT_QML_BEGIN_NAMESPACE
|
||||
|
||||
#define shiftWindowsLineBreak() \
|
||||
do { \
|
||||
|
||||
@@ -516,7 +516,7 @@ case 66: {
|
||||
}
|
||||
|
||||
case 67: {
|
||||
QString s = QLatin1String(QmlJSGrammar::spell[T_READONLY]);
|
||||
QString s = QLatin1String(QmlJSGrammar::spell[T_ON]);
|
||||
sym(1).sval = driver->intern(s.constData(), s.length());
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user