mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Fix order errors in text generators (#4329)
* Fix dart text generator logic * Fix Javascript text generator logic. * Fix Lua text generator logic * Fix php text generator logic * Fix python text generator logic * Fix error in substring logic * Fix unit test block generators * Update from ORDER_COMMA to ORDER_NONE * Update golden files
This commit is contained in:
@@ -134,7 +134,7 @@ Blockly.Lua.scrubNakedValue = function(line) {
|
||||
* quotes.
|
||||
* @param {string} string Text to encode.
|
||||
* @return {string} Lua string.
|
||||
* @private
|
||||
* @protected
|
||||
*/
|
||||
Blockly.Lua.quote_ = function(string) {
|
||||
string = string.replace(/\\/g, '\\\\')
|
||||
@@ -148,7 +148,7 @@ Blockly.Lua.quote_ = function(string) {
|
||||
* quotes.
|
||||
* @param {string} string Text to encode.
|
||||
* @return {string} Lua string.
|
||||
* @private
|
||||
* @protected
|
||||
*/
|
||||
Blockly.Lua.multiline_quote_ = function(string) {
|
||||
var lines = string.split(/\n/g).map(Blockly.Lua.quote_);
|
||||
@@ -165,7 +165,7 @@ Blockly.Lua.multiline_quote_ = function(string) {
|
||||
* @param {string} code The Lua code created for this block.
|
||||
* @param {boolean=} opt_thisOnly True to generate code for only this statement.
|
||||
* @return {string} Lua code with comments and subsequent blocks added.
|
||||
* @private
|
||||
* @protected
|
||||
*/
|
||||
Blockly.Lua.scrub_ = function(block, code, opt_thisOnly) {
|
||||
var commentCode = '';
|
||||
|
||||
Reference in New Issue
Block a user