MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / IsPrefixedNumberStart

Function IsPrefixedNumberStart

scintilla/lexers/LexOScript.cxx:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static 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
82static inline bool IsOperator(int ch) {
83 return strchr("%^&*()-+={}[]:;<>,/?!.~|\\", ch) != NULL;

Callers 1

ColouriseOScriptDocFunction · 0.85

Calls 1

IsADigitFunction · 0.85

Tested by

no test coverage detected