* @brief Returns true when ch can begin or continue a JavaScript identifier. */
| 85 | * @brief Returns true when ch can begin or continue a JavaScript identifier. |
| 86 | */ |
| 87 | static bool isJsIdentChar(QChar ch, bool first) |
| 88 | { |
| 89 | if (ch == QLatin1Char('_') || ch == QLatin1Char('$')) |
| 90 | return true; |
| 91 | |
| 92 | if (ch.isLetter()) |
| 93 | return true; |
| 94 | |
| 95 | if (!first && ch.isDigit()) |
| 96 | return true; |
| 97 | |
| 98 | return false; |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * @brief Returns the JS keywords whose brace-free "(...)"-terminated headers hang the next line. |
no outgoing calls
no test coverage detected