1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

strings: simplify Builder (#10263)

This commit is contained in:
Delyan Angelov
2021-05-31 14:21:06 +03:00
committed by GitHub
parent 8990114b4b
commit eac1e25c5d
14 changed files with 65 additions and 76 deletions

View File

@@ -13,11 +13,11 @@ mut:
is_attribute bool
opened_code_type string
line_count int
lexeme_builder strings.Builder = strings.Builder{}
lexeme_builder strings.Builder = strings.new_builder(100)
code_tags map[string]bool = map{
'script': true
'style': true
}
'script': true
'style': true
}
}
// Parser is responsible for reading the HTML strings and converting them into a `DocumentObjectModel`.