Skip to content

Commit

Permalink
Merge pull request #3875 from maxonfjvipon/bug/#3874/float-phi-up
Browse files Browse the repository at this point in the history
bug(#3874): float `@` up
  • Loading branch information
maxonfjvipon authored Jan 30, 2025
2 parents 79c82ff + e7e8f79 commit 483e553
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ SOFTWARE.
</xsl:for-each>
</xsl:copy>
</xsl:template>
<xsl:template match="o[@name and @name!='@' and ancestor::o[1][not(eo:abstract(.))]]">
<xsl:template match="o[@name and ancestor::o[1][not(eo:abstract(.))]]">
<xsl:element name="o">
<xsl:attribute name="base">
<xsl:value-of select="@name"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ sheets:
- /org/eolang/parser/parse/vars-float-up.xsl
asserts:
- /program[not(errors)]
- /program/objects[count(o)=3]
- //o[@base='.as-bytes' and @name='t' and @line='8' and o[@base='Q.org.eolang.dataized']]
- /program/objects[count(o)=4]
- //o[@name='app']/o[@name='@' and @base='bar']
- //o[@name='app']/o[@base='.foo']/o[@base='@' and not(@name)]
- //o[@base='.as-bytes' and @name='t' and o[@base='Q.org.eolang.dataized']]
- //objects[count(.//o[@base='Q.org.eolang.string'])=1]
- //o[@name='y']/o[@name='t']
- //o[@name='y']/o[@name='oops']
Expand All @@ -37,6 +39,12 @@ asserts:
- //o[@name='mm' and @base='Q.org.eolang.number']
- //o[@base='mm']
input: |
# no comments.
[] > app
foo.
bar > @
x
# No comments.
[] > x
first > ff
Expand Down

0 comments on commit 483e553

Please sign in to comment.