herb 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/herb/nodes.c +1 -1
- data/lib/herb/version.rb +1 -1
- data/src/include/version.h +1 -1
- data/src/parser.c +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5471c6f5aa48c61044e6be144f7b43a52836f4c7d92494be86e76fe558eb21cd
|
4
|
+
data.tar.gz: 479231eca871da61b459416b5f6ac7a65456eb9be0f33eadcf1eae35c92e05ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a997699b4271b7cf5352ed8d024c7217757dd54067046c870efc30666f4c0216f75a508ef4213f25a37fd233922684002048680d8f4de73efe2ba1c330897c4
|
7
|
+
data.tar.gz: e0dad56bc20b7464c5e51d4aac8328fd8ec40f5c77fcc111719bffaa5441224049239edc1d0c434e01788d7a8598566baef424ba76e0e9501c8682482026a197
|
data/ext/herb/nodes.c
CHANGED
@@ -445,7 +445,7 @@ static VALUE rb_erb_content_node_from_c_struct(AST_ERB_CONTENT_NODE_T* erb_conte
|
|
445
445
|
VALUE erb_content_node_tag_opening = rb_token_from_c_struct(erb_content_node->tag_opening);
|
446
446
|
VALUE erb_content_node_content = rb_token_from_c_struct(erb_content_node->content);
|
447
447
|
VALUE erb_content_node_tag_closing = rb_token_from_c_struct(erb_content_node->tag_closing);
|
448
|
-
/* #<Herb::Template::AnalyzedRubyField:
|
448
|
+
/* #<Herb::Template::AnalyzedRubyField:0x00007fc5d51009f8 @name="analyzed_ruby", @options={kind: nil}> */
|
449
449
|
VALUE erb_content_node_analyzed_ruby = Qnil;
|
450
450
|
VALUE erb_content_node_parsed = (erb_content_node->parsed) ? Qtrue : Qfalse;
|
451
451
|
VALUE erb_content_node_valid = (erb_content_node->valid) ? Qtrue : Qfalse;
|
data/lib/herb/version.rb
CHANGED
data/src/include/version.h
CHANGED
data/src/parser.c
CHANGED
@@ -805,6 +805,20 @@ static AST_HTML_OPEN_TAG_NODE_T* parser_parse_html_open_tag(parser_T* parser) {
|
|
805
805
|
continue;
|
806
806
|
}
|
807
807
|
|
808
|
+
if (parser->current_token->type == TOKEN_COLON) {
|
809
|
+
lexer_T lexer_copy = *parser->lexer;
|
810
|
+
token_T* next_token = lexer_next_token(&lexer_copy);
|
811
|
+
|
812
|
+
if (next_token && next_token->type == TOKEN_IDENTIFIER) {
|
813
|
+
token_free(next_token);
|
814
|
+
array_append(children, parser_parse_html_attribute(parser));
|
815
|
+
|
816
|
+
continue;
|
817
|
+
}
|
818
|
+
|
819
|
+
token_free(next_token);
|
820
|
+
}
|
821
|
+
|
808
822
|
parser_append_unexpected_error(
|
809
823
|
parser,
|
810
824
|
"Unexpected Token",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: herb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Roth
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-09-
|
10
|
+
date: 2025-09-14 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: Powerful and seamless HTML-aware ERB parsing and tooling.
|
13
13
|
email:
|