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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da1eee1da272b82f7e9a7f4bf361152dfa188db5374e236d6f5ae00d80792b44
4
- data.tar.gz: 0241b9ee4eed44b3a19ef2965f53ad40da3b6b7a40e7484aafa8f7ebc619813d
3
+ metadata.gz: 5471c6f5aa48c61044e6be144f7b43a52836f4c7d92494be86e76fe558eb21cd
4
+ data.tar.gz: 479231eca871da61b459416b5f6ac7a65456eb9be0f33eadcf1eae35c92e05ba
5
5
  SHA512:
6
- metadata.gz: cead5cd7b70f90e16aefe622550bf6cc5f2e35302aff68750f5f005874f06f039e60fda2eb39edb01bc1a57b82e7e8c933e4c7c3f1a03519864b14bc73ca181a
7
- data.tar.gz: be3ccbdb22f813809e1d320c008af1cfc345eb0c62a0a26bb7246798984f6202f61e07df431531823023cf2f389cf72eb889bf6a7a51d3fdca40fb0343d1f4bc
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:0x00007f0b12bf1430 @name="analyzed_ruby", @options={kind: nil}> */
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
@@ -2,5 +2,5 @@
2
2
  # typed: true
3
3
 
4
4
  module Herb
5
- VERSION = "0.7.0"
5
+ VERSION = "0.7.1"
6
6
  end
@@ -1,6 +1,6 @@
1
1
  #ifndef HERB_VERSION_H
2
2
  #define HERB_VERSION_H
3
3
 
4
- #define HERB_VERSION "0.7.0"
4
+ #define HERB_VERSION "0.7.1"
5
5
 
6
6
  #endif
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.0
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-05 00:00:00.000000000 Z
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: