-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nim, Lua: fix sticking unary "not" operator to the number
BaseTranslator does not insert space between operator and expression. When expression is a number, "~<number>" and "!<number>" becomes "not<number>" which is an identifier Fixes test (1): ``` [info] - nim:~777 *** FAILED *** [info] "not[]777" was not equal to "not[ ]777" (TranslatorSpec.scala:183) [info] Analysis: [info] "not[]777" -> "not[ ]777" ```
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters