aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/parser/token.h
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/parser/token.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/parser/token.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/parser/token.h b/SQLiteStudio3/coreSQLiteStudio/parser/token.h
index 85c46c1..1088d9e 100644
--- a/SQLiteStudio3/coreSQLiteStudio/parser/token.h
+++ b/SQLiteStudio3/coreSQLiteStudio/parser/token.h
@@ -113,7 +113,7 @@ struct API_EXPORT Token
/**
* @brief Creates fully defined token.
- * @param lemonType Lemon token ID to use (see sqlite2_parser.h and sqlite3_parser.h).
+ * @param lemonType Lemon token ID to use (see sqlite3_parser.h).
* @param type Token type.
* @param value Value of the token.
* @param start Start position of the token (index of the first character in the query).
@@ -199,6 +199,12 @@ struct API_EXPORT Token
bool isSeparating() const;
/**
+ * @brief Tests whether the token represents meaningful type.
+ * @return true if token is meaningful, like a word, object, string, number, etc. Not comment, not whitespace, not context marker.
+ */
+ bool isMeaningful() const;
+
+ /**
* @brief Tests whether this token is representing any kind of database object name.
* @return true if the token is the name an object, or false otherwise.
*