forked from enlightenment/efl
eolian-cxx: Fixed a bug in class validator.
This commit is contained in:
parent
78e396ac19
commit
027fa407bd
|
@ -13,7 +13,7 @@ namespace efl { namespace eolian {
|
|||
inline bool
|
||||
_is_valid(std::string const& value)
|
||||
{
|
||||
return !value.empty() and isalpha(value[0]);
|
||||
return !value.empty() and (isalpha(value[0]) || value[0] == '_');
|
||||
}
|
||||
|
||||
inline bool
|
||||
|
|
Loading…
Reference in New Issue