-
-
Save LinArcX/b315aa5a88abccefb2ae3a9c6c2a79b9 to your computer and use it in GitHub Desktop.
Revisions
-
tkqubo revised this gist
Jun 22, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,4 +21,4 @@ attr-double-quoted-value := /[^"]*/ alphabets := [a-zA-Z] digits := /[0-9]/ ws := /\s/ -
tkqubo revised this gist
Jun 3, 2012 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ tag-open := '<' tag-name ws* attr-list? ws* '>' tag-empty := '<' tag-name ws* attr-list? ws* '/>' tag-close := '</' tag-name ws* '>' -
tkqubo renamed this gist
May 31, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tkqubo revised this gist
May 31, 2012 . 1 changed file with 14 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,22 @@ tag-open := '<' tag-name ws* attr-list? ws* '/'? '>' tag-close := '</' tag-name ws* '>' attr-list := (ws+ attr)* attr := attr-empty | attr-unquoted | attr-single-quoted | attr-double-quoted attr-empty := attr-name attr-unquoted := attr-name ws* = ws* attr-unquoted-value attr-single-quoted := attr-name ws* = ws* ' attr-single-quoted-value ' attr-double-quoted := attr-name ws* = ws* " attr-double-quoted-value " tag-name := (alphabets | digits)+ # Can digits become first letter? attr-name := /[^\s"'>/=\p{Control}]+/ # These three items should not contain 'ambiguous ampersand'... attr-unquoted-value := /[^\s"'=<>`]+/ attr-single-quoted-value := /[^']*/ attr-double-quoted-value := /[^"]*/ alphabets := [a-zA-Z] digits := /[0-9]/ -
tkqubo revised this gist
May 31, 2012 . 1 changed file with 6 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,16 @@ tag-open := '<' tag-name attributes ['/'] '>' tag-close := '</' tag-name ws* '>' attributes := (ws+ attr)* attr := empty | unquoted | single-quoted | double-quoted empty := attr-name unquoted := attr-name ws* = ws* attr-value-nonspace single-quoted := attr-name ws* = ws* ' attr-value-nosingle ' double-quoted := attr-name ws* = ws* " attr-value-nodouble " tag-name := (alphabets | digits)+ # can digits become first letter? attr-name := /[^\s"'>/=\p{Control}]+/ attr-value-nosingle := /[^']*/ attr-value-nodouble := /[^"]*/ attr-value-nonspace := /[^\s"'=<>`]+/ -
tkqubo created this gist
May 31, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ opentag := '<' tagname attributes ['/'] '>' closetag := '</' tagname ws* '>' tagname := alphabets (alphabets | digits)* attributes := (ws+ attr)* attr := empty | unquoted | single-quoted | double-quoted empty := attr-name unquoted := attr-name ws* = ws* attr-value-nonspace single-quoted := attr-name ws* = ws* ' attr-value-nosingle ' double-quoted := attr-name ws* = ws* " attr-value-nodouble " tagname := /[a-zA-Z0-9]+/ attr-name := /[^\s"'>/=]+/ attr-value-nosingle := /[^']*/ attr-value-nodouble := /[^"]*/ attr-value-nonspace := /[^\s"'=<>`]+/ alphabets := [a-zA-Z] digits := /[0-9]/ ws := /\s+/