diff options
| author | 2021-12-17 07:06:30 -0500 | |
|---|---|---|
| committer | 2021-12-17 07:06:30 -0500 | |
| commit | 1fdc150116cad39aae5c5da407c3312b47a59e3a (patch) | |
| tree | 123c79a4d7ad2d45781ba03ce939f7539fb428d8 /SQLiteStudio3/coreSQLiteStudio/parser/token.h | |
| parent | feda8a7db8d1d7c5439aa8f8feef7cc0dd2b59a0 (diff) | |
New upstream version 3.3.3+dfsg1.upstream/3.3.3+dfsg1
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/parser/token.h')
| -rw-r--r-- | SQLiteStudio3/coreSQLiteStudio/parser/token.h | 8 |
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. * |
