| 72 | } |
| 73 | |
| 74 | static inline bool IsPrefixedNumberStart(int ch, int chNext) { |
| 75 | // KNOWN PROBLEM: if you put + or - operators immediately before a number |
| 76 | // the operator will not be recognized and it will be styled together with |
| 77 | // the succeeding number. This should not occur; at least not often. The |
| 78 | // coding style recommends putting spaces around operators. |
| 79 | return (ch == '.' || ch == '-' || ch == '+') && IsADigit(chNext); |
| 80 | } |
| 81 | |
| 82 | static inline bool IsOperator(int ch) { |
| 83 | return strchr("%^&*()-+={}[]:;<>,/?!.~|\\", ch) != NULL; |
no test coverage detected