-
-
Notifications
You must be signed in to change notification settings - Fork 35
Rationalize name-char #1008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Rationalize name-char #1008
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3293cba
Rationalize name-char
macchiati 677878d
Make corresponding changes in syntax.md
macchiati 5ad3a72
Fix long lines
macchiati f0d9d54
Fix long lines 2
macchiati 39ece5a
Update spec/syntax.md
aphillips 14eb173
Apply suggestions from code review
macchiati 0eb3c22
Review comment re XML
macchiati 70c3c9c
Drop Cs
macchiati a668429
Remove Cs from exclusions
macchiati 479e41c
Fix reference to XML
macchiati 1bf206a
Put 'omit' on line before
macchiati 8ff73f7
Put omit on previous line
macchiati 074346a
Drop XML reference
macchiati bffc098
Apply suggestions from code review
macchiati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 characters
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -49,18 +49,41 @@ local = %s".local" | |||||||||
| match = %s".match" | ||||||||||
|
|
||||||||||
| ; Names and identifiers | ||||||||||
| ; identifier matches https://www.w3.org/TR/REC-xml-names/#NT-QName | ||||||||||
| ; name matches https://www.w3.org/TR/REC-xml-names/#NT-NCName but excludes U+FFFD and U+061C | ||||||||||
| identifier = [namespace ":"] name | ||||||||||
| namespace = name | ||||||||||
| name = [bidi] name-start *name-char [bidi] | ||||||||||
| name-start = ALPHA / "_" | ||||||||||
| / %xC0-D6 / %xD8-F6 / %xF8-2FF | ||||||||||
| / %x370-37D / %x37F-61B / %x61D-1FFF / %x200C-200D | ||||||||||
| / %x2070-218F / %x2C00-2FEF / %x3001-D7FF | ||||||||||
| / %xF900-FDCF / %xFDF0-FFFC / %x10000-EFFFF | ||||||||||
| name-start = ALPHA | ||||||||||
| ; omit Cc: %x0-1F, Whitespace: SPACE, Ascii: «!"#$%&'()*» | ||||||||||
| / %x2B ; «+» omit Ascii: «,-./0123456789:;<=>?@» «[\]^» | ||||||||||
| / %x5F ; «_» omit Cc: %x7F-9F, Whitespace: %xA0, Ascii: «`» «{|}~» | ||||||||||
|
Comment on lines
+57
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are there two sets of guillemet-quoted ASCII characters here?
Suggested change
|
||||||||||
| / %xA1-61B ; omit BidiControl: %x61C | ||||||||||
| / %x61D-167F ; omit Whitespace: %x1680 | ||||||||||
| / %x1681-1FFF ; omit Whitespace: %x2000-200A | ||||||||||
| / %x200B-200D ; omit BidiControl: %x200E-200F | ||||||||||
| / %x2010-2027 ; omit Whitespace: %x2028-2029 %x202F, BidiControl: %x202A-202E | ||||||||||
| / %x2030-205E ; omit Whitespace: %x205F | ||||||||||
| / %x2060-2065 ; omit BidiControl: %x2066-2069 | ||||||||||
| / %x206A-2FFF ; omit Whitespace: %x3000 | ||||||||||
| / %x3001-D7FF ; omit Cs: %xD800-DFFF | ||||||||||
| / %xE000-FDCF ; omit NChar: %xFDD0-FDEF | ||||||||||
| / %xFDF0-FFFD ; omit NChar: %xFFFE-FFFF | ||||||||||
| / %x10000-1FFFD ; omit NChar: %x1FFFE-1FFFF | ||||||||||
| / %x20000-2FFFD ; omit NChar: %x2FFFE-2FFFF | ||||||||||
| / %x30000-3FFFD ; omit NChar: %x3FFFE-3FFFF | ||||||||||
| / %x40000-4FFFD ; omit NChar: %x4FFFE-4FFFF | ||||||||||
| / %x50000-5FFFD ; omit NChar: %x5FFFE-5FFFF | ||||||||||
| / %x60000-6FFFD ; omit NChar: %x6FFFE-6FFFF | ||||||||||
| / %x70000-7FFFD ; omit NChar: %x7FFFE-7FFFF | ||||||||||
| / %x80000-8FFFD ; omit NChar: %x8FFFE-8FFFF | ||||||||||
| / %x90000-9FFFD ; omit NChar: %x9FFFE-9FFFF | ||||||||||
| / %xA0000-AFFFD ; omit NChar: %xAFFFE-AFFFF | ||||||||||
| / %xB0000-BFFFD ; omit NChar: %xBFFFE-BFFFF | ||||||||||
| / %xC0000-CFFFD ; omit NChar: %xCFFFE-CFFFF | ||||||||||
| / %xD0000-DFFFD ; omit NChar: %xDFFFE-DFFFF | ||||||||||
| / %xE0000-EFFFD ; omit NChar: %xEFFFE-EFFFF | ||||||||||
| / %xF0000-FFFFD ; omit NChar: %xFFFFE-FFFFF | ||||||||||
| / %x100000-10FFFD ; omit NChar: %x10FFFE-10FFFF | ||||||||||
| name-char = name-start / DIGIT / "-" / "." | ||||||||||
| / %xB7 / %x300-36F / %x203F-2040 | ||||||||||
|
|
||||||||||
| ; Restrictions on characters in various contexts | ||||||||||
| simple-start-char = %x01-08 ; omit NULL (%x00), HTAB (%x09) and LF (%x0A) | ||||||||||
|
|
||||||||||
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 characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.