• R/O
  • SSH
  • HTTPS

gtaconfig: Commit


Commit MetaInfo

Revision17 (tree)
Time2018-05-15 18:28:20
Authorquiret

Log Message

- little fix

Change Summary

Incremental Difference

--- src/syntax.h (revision 16)
+++ src/syntax.h (revision 17)
@@ -71,12 +71,8 @@
7171 template <typename charType>
7272 static inline bool IsName(charType c)
7373 {
74- switch( c )
75- {
76- case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z':
77- case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z':
78- case 'ß': // this is why a locale setting is important; gotta consider one.
79- case '_':
74+ if ( c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == (unsigned char)'ß' || c == (unsigned char)'_' )
75+ {
8076 return true;
8177 }
8278
Show on old repository browser