mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
net.html: simplify map setting (fixes compilation with tcc on aarch64)
This commit is contained in:
parent
dfc4298125
commit
e8ff94fb8b
1 changed files with 4 additions and 2 deletions
|
@ -157,8 +157,10 @@ pub fn (mut parser Parser) split_parse(data string) {
|
||||||
parser.lexycal_attributes.write_lexeme(word)
|
parser.lexycal_attributes.write_lexeme(word)
|
||||||
temp_lexeme := parser.builder_str()
|
temp_lexeme := parser.builder_str()
|
||||||
if parser.lexycal_attributes.current_tag.last_attribute != '' {
|
if parser.lexycal_attributes.current_tag.last_attribute != '' {
|
||||||
parser.lexycal_attributes.current_tag.attributes[parser.lexycal_attributes.current_tag.last_attribute] = temp_lexeme.substr(1,
|
lattr := parser.lexycal_attributes.current_tag.last_attribute
|
||||||
temp_lexeme.len - 1) // parser.print_debug(parser.lexycal_attributes.current_tag.last_attribute + " = " + temp_lexeme)
|
nval := temp_lexeme.substr(1, temp_lexeme.len - 1)
|
||||||
|
// parser.print_debug(lattr + " = " + temp_lexeme)
|
||||||
|
parser.lexycal_attributes.current_tag.attributes[lattr] = nval
|
||||||
parser.lexycal_attributes.current_tag.last_attribute = ''
|
parser.lexycal_attributes.current_tag.last_attribute = ''
|
||||||
} else {
|
} else {
|
||||||
parser.lexycal_attributes.current_tag.attributes[temp_lexeme.to_lower()] = '' // parser.print_debug(temp_lexeme)
|
parser.lexycal_attributes.current_tag.attributes[temp_lexeme.to_lower()] = '' // parser.print_debug(temp_lexeme)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue