Commit 2814ac31 authored by Pouya Kary's avatar Pouya Kary

all whitespaces set is added

parent ca6922b2
......@@ -911,36 +911,24 @@
}
//
// ─── ENUMERATED UNICODE PROPERTY ────────────────────────────────────────────────
// ─── ALL SPACES ─────────────────────────────────────────────────────────────────
//
Blockly.Blocks['unicode_enum_property'] = {
Blockly.Blocks['all_whitespace_chars'] = {
init: function() {
this.appendDummyInput()
.appendField("Enumerated Unicode Property");
this.appendDummyInput()
.appendField("Proprety:")
.appendField(
new Blockly.FieldDropdown([
[ "option", "OPTIONNAME" ]
]), "property")
this.appendDummyInput()
.appendField(" Value:")
.appendField(new Blockly.FieldDropdown([["Select a property first","none"]]), "value")
.appendField("All Whitespace Characters")
this.setPreviousStatement(true, "String")
this.setNextStatement(true, "String")
this.setColour(90)
this.setTooltip("")
this.setHelpUrl("")
}
};
QuartetGenerator['unicode_enum_property'] = function ( block ) {
const property = block.getFieldValue('property')
const value = block.getFieldValue('value')
return code;
};
this.setColour(20)
this.setTooltip('')
this.setHelpUrl('http://www.example.com/')
}
}
QuartetGenerator[ 'all_whitespace_chars' ] = function ( block ) {
return '\\s'
}
// ────────────────────────────────────────────────────────────────────────────────
......
......@@ -207,8 +207,10 @@
<block type="anything_but_word"></block>
<block type="digit"></block>
<block type="anything_but_digit"></block>
<block type="all_whitespace_chars"></block>
<block type="whitespace"></block>
<block type="anything_but_whitespace"></block>
<block type=""></block>
<block type="special_whitespace"></block>
<block type="boundary"></block>
<block type="anything_but_boundary"></block>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment