Branch: Tag:

2017-03-18

2017-03-18 15:21:09 by Martin Nilsson <nilsson@fastmail.com>

Use isidchar instead of making our own aproximation.

42:      inline static int m_isidchar( unsigned int x )   { -  if( (x >= 'a' && x <= 'z') || (x>='A' && x<='Z') || x>128 || x == '_') -  return 1; -  return 0; +  if( (x>='0' && x<='9') ) return 0; +  return isidchar(x);   }    - inline static int m_isidchar2( unsigned int x ) - { -  if( (x >= 'a' && x <= 'z') || (x>='A' && x<='Z') || x>128 || x=='_' || -  (x>='0'&&x<='9')||x=='$') -  return 1; -  return 0; - } + #define m_isidchar2(X) isidchar(X)         #define PUSH_TOKEN push_token0