-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update HTML parser * Fix the release script so as to delete files that we no longer release
- Loading branch information
Showing
7 changed files
with
36 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/src/scanner.c b/src/scanner.c | ||
index eecef9a..eddc236 100644 | ||
--- a/src/scanner.c | ||
+++ b/src/scanner.c | ||
@@ -102,7 +102,13 @@ static void deserialize(Scanner *scanner, const char *buffer, unsigned length) { | ||
|
||
static String scan_tag_name(TSLexer *lexer) { | ||
String tag_name = array_new(); | ||
- while (iswalnum(lexer->lookahead) || lexer->lookahead == '-' || lexer->lookahead == ':') { | ||
+ while (iswalnum(lexer->lookahead) || | ||
+ // to accept xml names! | ||
+ lexer->lookahead == '.' || | ||
+ lexer->lookahead == '_' || | ||
+ // original html-only name | ||
+ lexer->lookahead == '-' || | ||
+ lexer->lookahead == ':') { | ||
array_push(&tag_name, towupper(lexer->lookahead)); | ||
advance(lexer); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
Submodule tree-sitter-html
updated
56 files