mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
JSSpecCompiler: Parse <sup> as raising a number to a power in xspec mode
This commit is contained in:
parent
394c9b7006
commit
bd26e5dce9
6 changed files with 18 additions and 4 deletions
|
@ -46,6 +46,7 @@ constexpr i32 closing_bracket_precedence = 18;
|
|||
F(Plus, 6, Invalid, Plus, Invalid, "plus") \
|
||||
F(SectionNumber, -1, Invalid, Invalid, Invalid, "section number") \
|
||||
F(String, -1, Invalid, Invalid, Invalid, "string literal") \
|
||||
F(Superscript, 4, Invalid, Power, Invalid, "subscript") \
|
||||
F(UnaryMinus, 3, Minus, Invalid, Invalid, "unary minus") \
|
||||
F(Undefined, -1, Invalid, Invalid, Invalid, "constant") \
|
||||
F(Word, -1, Invalid, Invalid, Invalid, "word")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue