diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-06 17:28:34 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-06 17:28:34 +1000 |
commit | 2c0c5b628fd0b8e7499574d379b4138630f886d7 (patch) | |
tree | 20be82a411649f8f80281c6f73977e0d797858eb /html/html.go | |
parent | a65a9325aaebd1499a8e523463cc023124f8536a (diff) |
Add String parser
Diffstat (limited to 'html/html.go')
-rw-r--r-- | html/html.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/html/html.go b/html/html.go index 5ceb5e9..adee935 100644 --- a/html/html.go +++ b/html/html.go @@ -21,7 +21,7 @@ var ( element = Any(text, &tag) elements = Kleene(element) //attr := And(identifier, equal, String()) - attr = And(identifier, WS, "=", WS, `"test"`) + attr = And(WS, identifier, WS, "=", WS, Any(String('"'), String('\''))) attrs = Map(Kleene(attr, WS), func(node Node) Node { nodes := node.([]Node) attr := map[string]string{} |