brighterscript
Advanced tools
Comparing version 0.34.0 to 0.34.1
@@ -9,2 +9,8 @@ # Changelog | ||
## [0.34.1] - 2021-03-02 | ||
### Fixed | ||
- syntax parsing bugs within single-line if statements | ||
## [0.34.0] - 2021-02-28 | ||
@@ -1010,1 +1016,2 @@ ### Added | ||
[0.34.0]: https://github.com/rokucommunity/brighterscript/compare/v0.33.0...v0.34.0 | ||
[0.34.1]: https://github.com/rokucommunity/brighterscript/compare/v0.34.0...v0.34.1 |
@@ -205,2 +205,15 @@ "use strict"; | ||
}); | ||
it('parses special statements in inline block', () => { | ||
const { statements, diagnostics } = Parser_1.Parser.parse(` | ||
if true print 1 else print 1 | ||
if true then print 1 else print 1 | ||
if true print "x=" ; 1 else print 1 | ||
if true then print "x=", 1 else print 1 | ||
if true print "x=" 1 else print 1 | ||
if true return else print 1 | ||
if true then return else print 1 | ||
`); | ||
chai_1.expect(diagnostics).to.be.lengthOf(0); | ||
chai_1.expect(statements).to.be.length.greaterThan(0); | ||
}); | ||
}); | ||
@@ -207,0 +220,0 @@ describe('block if', () => { |
{ | ||
"name": "brighterscript", | ||
"version": "0.34.0", | ||
"version": "0.34.1", | ||
"description": "A superset of Roku's BrightScript language.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2685915
37849