mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 06:07:35 +00:00
LibGUI: Register a whole bunch of properties in various widgets
This commit is contained in:
parent
20b74e4ede
commit
90aeacbb58
14 changed files with 65 additions and 7 deletions
|
@ -66,11 +66,6 @@ static bool is_valid_identifier_character(char ch)
|
|||
return isalnum(ch) || ch == '_';
|
||||
}
|
||||
|
||||
static bool is_valid_class_start(char ch)
|
||||
{
|
||||
return isalpha(ch) || ch == '_';
|
||||
}
|
||||
|
||||
static bool is_valid_class_character(char ch)
|
||||
{
|
||||
return isalnum(ch) || ch == '_' || ch == ':';
|
||||
|
@ -138,7 +133,7 @@ Vector<GMLToken> GMLLexer::lex()
|
|||
continue;
|
||||
}
|
||||
|
||||
if (peek(0) == '@' && is_valid_class_start(peek(1))) {
|
||||
if (peek(0) == '@') {
|
||||
consume_class();
|
||||
continue;
|
||||
}
|
||||
|
@ -160,7 +155,7 @@ Vector<GMLToken> GMLLexer::lex()
|
|||
while (isspace(peek()))
|
||||
consume();
|
||||
|
||||
if (peek(0) == '@' && is_valid_class_start(peek(1))) {
|
||||
if (peek(0) == '@') {
|
||||
consume_class();
|
||||
} else {
|
||||
begin_token();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue