Skip to content
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

Chore/update to latest rascal #8

Merged
merged 8 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 3 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<dependency>
<groupId>org.rascalmpl</groupId>
<artifactId>rascal</artifactId>
<version>0.34.0</version>
<version>0.40.7</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -71,9 +71,9 @@
<plugin>
<groupId>org.rascalmpl</groupId>
<artifactId>rascal-maven-plugin</artifactId>
<version>0.23.1</version>
<version>0.28.1</version>
<configuration>
<errorsAsWarnings>true</errorsAsWarnings>
<errorsAsWarnings>false</errorsAsWarnings>
<bin>${project.build.outputDirectory}</bin>
<srcs>
<src>${project.basedir}/src/main/rascal</src>
Expand Down Expand Up @@ -104,9 +104,6 @@
<enableStandardLibrary>true</enableStandardLibrary>
<errorsAsWarnings>false</errorsAsWarnings>
<bin>${project.build.outputDirectory}</bin>
<license>${project.basedir}/LICENSE</license>
<funding>${project.basedir}/FUNDING</funding>
<releaseNotes>${project.basedir}/RELEASE-NOTES</releaseNotes>
<sources>|http://github.com/usethesource/salix-core|</sources>
<issues>|http://github.com/usethesource/salix-core/issues|</issues>
<srcs>
Expand Down
6 changes: 2 additions & 4 deletions src/main/rascal/salix/HTML.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ Attr seamless(bool val) = attr("seamless", "<val>");
Attr srcdoc(str val) = attr("srcdoc", val);
Attr reversed(bool val) = attr("reversed", "<val>");
Attr \start(int val) = attr("start", "<val>");
Attr align(str val) = attr("align", val);
Attr colspan(int val) = attr("colspan", "<val>");
Attr rowspan(int val) = attr("rowspan", "<val>");
Attr headers(str val) = attr("headers", val);
Expand Down Expand Up @@ -254,7 +253,6 @@ Attr \datetime(str val) = attr("datetime", val);
Attr pubdate(str val) = attr("pubdate", val);
Attr manifest(str val) = attr("manifest", val);

Attr valign(str val) = attr("valign", val);
Attr cellpadding(str val) = attr("cellpadding", val);
Attr cellspacing(str val) = attr("cellspacing", val);

Expand Down Expand Up @@ -288,7 +286,7 @@ Attr onSubmit(Msg msg) = event("submit", succeed(msg));
Attr onBlur(Msg msg) = event("blur", succeed(msg));
Attr onFocus(Msg msg) = event("focus", succeed(msg));

Attr onCheck(Msg(bool) f) = event("change", targetChecked(f));
Attr onCheck(Msg(bool) f) = event("check", targetChecked(f));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tvdstorm I've fixed a c&p error (the onCheck function was defined twice), I hope I generated the right events.


Attr onInput(Msg(str) f) = event("input", targetValue(f));
Attr onInput(Msg(int) f) = event("input", targetInt(f));
Expand All @@ -298,7 +296,7 @@ Attr onChange(Msg(int) f) = event("change", targetInt(f));
Attr onChange(Msg(real) f) = event("change", targetReal(f));
Attr onChange(Msg(str) f) = event("change", targetValue(f));

Attr onCheck(Msg(bool) f) = event("check", targetChecked(f));
Attr onChange(Msg(bool) f) = event("change", targetChecked(f));

@doc{Smart constructors for constructing encoded event decoders.}
Hnd succeed(Msg msg) = handler("succeed", encode(msg));
Expand Down
Loading