Fixed hyphenated attributes.

This commit is contained in:
JesseBrault0709 2024-06-13 20:01:30 +02:00
parent 301f00e9a4
commit 0076ae6627
7 changed files with 18 additions and 3 deletions

View File

@ -28,6 +28,7 @@ For example:
``` ```
<Outlet children={children} /> <Outlet children={children} />
``` ```
- [x] `data-` attributes need to function correctly (really any attribute with hyphen).
## 0.1.1 ## 0.1.1
- [x] `Switch` and `Case` components - [x] `Switch` and `Case` components

View File

@ -307,7 +307,7 @@ AttributeIdentifierStartChar
fragment fragment
AttributeIdentifierChar AttributeIdentifierChar
: [\p{L}_$0-9] : [-\p{L}_$0-9]
; ;
Equals Equals

View File

@ -0,0 +1 @@
<test test-attr />

View File

@ -0,0 +1 @@
<test-type />

View File

@ -0,0 +1,7 @@
0: ComponentOpen[1,1](<)
1: StringIdentifier[1,2](test)
2: Nlws[1,6]( )
3: AttributeIdentifier[1,7](test-attr)
4: Nlws[1,16]( )
5: ComponentSelfClose[1,17](/>)
6: RawText[1,19](\n)

View File

@ -0,0 +1,5 @@
0: ComponentOpen[1,1](<)
1: StringIdentifier[1,2](test-type)
2: Nlws[1,11]( )
3: ComponentSelfClose[1,12](/>)
4: RawText[1,14](\n)

View File

@ -2,7 +2,7 @@
if [ "\$1" == "--debug" ]; then if [ "\$1" == "--debug" ]; then
shift shift
gradle -q toolsJar && java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8192 -cp build/libs/web-view-components-compiler-tools-0.1.0.jar $mainClassName "\$@" gradle -q toolsJar && java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8192 -cp build/libs/web-view-components-compiler-tools-0.1.1.jar $mainClassName "\$@"
else else
gradle -q toolsJar && java -cp build/libs/web-view-components-compiler-tools-0.1.0.jar $mainClassName "\$@" gradle -q toolsJar && java -cp build/libs/web-view-components-compiler-tools-0.1.1.jar $mainClassName "\$@"
fi fi