* @brief Returns true when ch can begin or continue a Lua identifier. */
| 116 | * @brief Returns true when ch can begin or continue a Lua identifier. |
| 117 | */ |
| 118 | static bool isLuaIdentChar(QChar ch, bool first) |
| 119 | { |
| 120 | if (ch == QLatin1Char('_')) |
| 121 | return true; |
| 122 | |
| 123 | if (ch.isLetter()) |
| 124 | return true; |
| 125 | |
| 126 | if (!first && ch.isDigit()) |
| 127 | return true; |
| 128 | |
| 129 | return false; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * @brief If line[i:] opens a Lua long-bracket form, returns its level and length. |
no outgoing calls
no test coverage detected