Loading files
// Erbui Model Notation language specs
(
/****************************************************************************/
// MARK: Keywords
/****************************************************************************/
{
Identifier = "xcode.lang.erbui.keyword";
Syntax = {
StartChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
Words = (
"import",
"module", "extends", "board", "width", "material", "header", "footer", "line", "alias", "exclude",
"control", "label", "positioning", "sticker", "image", "pin", "pins", "normalling", "mode",
"position", "rotation", "offset", "style", "layer",
"route", "wire", "manual",
"faust", "init", "address", "property", "value",
"class", "include", "pcb", "side", "sch", "format", "net", "bind", "type", "gpio", "pwm", "dac",
"manufacturer", "generator", "arg", "parts",
);
Type = "xcode.syntax.keyword";
};
},
/****************************************************************************/
// MARK: Erbui Control Types and Styles
/****************************************************************************/
{
Identifier = "xcode.lang.erbui.property";
Syntax = {
StartChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.";
Words = (
"AudioIn", "AudioOut", "Button", "CvIn", "CvOut", "Display", "Encoder", "GateIn", "GateOut", "Led", "LedBi", "LedRgb", "Pot", "Switch", "Trim",
"aluminum", "brushed_aluminum", "aluminum_coated", "natural", "white", "black",
"face", "center", "left", "top", "right", "bottom",
"normalized", "bipolar",
"3u", "1590bb2_portrait",
"silkscreen", "translucence",
);
Type = "xcode.syntax.identifier.type.system";
};
},
/****************************************************************************/
// MARK: Pin Types
/****************************************************************************/
{
Identifier = "xcode.lang.erbui.pin";
Syntax = {
StartChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
Match = ("^(.*)(Pin)(.*)");
Type = "xcode.syntax.identifier.type.system";
};
},
/****************************************************************************/
// MARK: User module
/****************************************************************************/
{
Identifier = "xcode.lang.erbui.module";
Syntax = {
StartChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
Type = "xcode.syntax.identifier.type";
};
},
/****************************************************************************/
// MARK: User controls
/****************************************************************************/
{
Identifier = "xcode.lang.erbui.control";
Syntax = {
StartChars = "abcdefghijklmnopqrstuvwxyz";
Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
Type = "xcode.syntax.identifier.variable";
};
},
/****************************************************************************/
// MARK: Units
/****************************************************************************/
{
Identifier = "xcode.lang.erbui.distance";
Syntax = {
StartChars = "1234567890";
Chars = "0123456789.abcdefghijklmnopqrstuvwxyz°";
Match = ("^[0-9.]*(mm|hp)");
Type = "xcode.syntax.number";
};
},
/****************************************************************************/
// MARK: Simple Syntax Coloring
/****************************************************************************/
{
Identifier = "xcode.lang.erbui";
Description = "Erbui Model Coloring";
BasedOn = "xcode.lang.simpleColoring";
IncludeInMenu = YES;
Name = "Erbui";
Syntax = {
IncludeRules = (
"xcode.lang.comment",
"xcode.lang.comment.singleline",
"xcode.lang.string",
"xcode.lang.erbui.distance",
"xcode.lang.number",
"xcode.lang.erbui.keyword",
"xcode.lang.erbui.property",
"xcode.lang.erbui.pin",
"xcode.lang.erbui.module",
"xcode.lang.erbui.control",
);
Type = "xcode.syntax.plain";
};
},
)
1c962d8cfThis file is pinned to the selected release. Download the original to open it in your design tool.