Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion OpenDreamClient/Interface/DMF/DMFLexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public Token NextToken() {
Advance();
_parsingAttributeName = true; // Still parsing an attribute name, the last one was actually an element name!
return new(TokenType.Period, c);
case '&': // & is a valid splitter as well
case ';':
Advance();
_parsingAttributeName = true;
Expand Down Expand Up @@ -126,7 +127,7 @@ public Token NextToken() {
var textBuilder = new StringBuilder();
textBuilder.Append(c);

while (!char.IsWhiteSpace(Advance()) && GetCurrent() is not ';' and not '=' and not '?' and not ':' && !(_parsingAttributeName && GetCurrent() == '.') && !AtEndOfSource)
while (!char.IsWhiteSpace(Advance()) && GetCurrent() is not ';' and not '&' and not '=' and not '?' and not ':' && !(_parsingAttributeName && GetCurrent() == '.') && !AtEndOfSource)
textBuilder.Append(GetCurrent());

var text = textBuilder.ToString();
Expand Down
Loading