-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Gtk blueprint lang. Fix TextInput size in UIMessageBox. Some fi…
…xes on path resolve in GitPlugin.
- Loading branch information
Showing
5 changed files
with
108 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#include <eepp/ui/doc/languages/blueprint.hpp> | ||
#include <eepp/ui/doc/syntaxdefinitionmanager.hpp> | ||
|
||
namespace EE { namespace UI { namespace Doc { namespace Language { | ||
|
||
void addBlueprint() { | ||
|
||
SyntaxDefinitionManager::instance()->add( | ||
|
||
{ "Blueprint", | ||
{ "%.blp$" }, | ||
{ | ||
{ { "//.*" }, "comment" }, | ||
{ { "/%*", "%*/" }, "comment" }, | ||
{ { "'", "'", "\\" }, "string" }, | ||
{ { "\"", "\"", "\\" }, "string" }, | ||
{ { "%.?%d+" }, "number" }, | ||
{ { "%[.*%]" }, "literal" }, | ||
{ { "%$" }, "operator" }, | ||
{ { "(=>%s*%$)(.*)(%(%))" }, { "normal", "operator", "function", "normal" } }, | ||
{ { "([%w-_]+)(%s*:)" }, { "normal", "keyword", "normal" } }, | ||
{ { "([%w_-%.]+%s*)({)" }, { "normal", "keyword2", "normal" } }, | ||
{ { "([%w_-%.]+%s*)([%w_-]+%s*{)" }, { "normal", "keyword2", "normal" } }, | ||
{ { "[%w-_]+" }, "symbol" }, | ||
{ { "%s+" }, "normal" }, | ||
{ { "%w+%f[%s]" }, "normal" }, | ||
|
||
}, | ||
{ | ||
{ "no-sync-create", "keyword" }, | ||
{ "section", "keyword" }, | ||
{ "bind", "keyword" }, | ||
{ "setters", "keyword2" }, | ||
{ "default", "keyword" }, | ||
{ "suggested", "keyword" }, | ||
{ "using", "keyword" }, | ||
{ "strings", "keyword2" }, | ||
{ "swapped", "keyword" }, | ||
{ "accessibility", "keyword2" }, | ||
{ "responses", "keyword2" }, | ||
{ "mime-types", "keyword2" }, | ||
{ "after", "keyword" }, | ||
{ "menu", "keyword" }, | ||
{ "mark", "keyword2" }, | ||
{ "destructive", "keyword" }, | ||
{ "submenu", "keyword" }, | ||
{ "suffixes", "keyword2" }, | ||
{ "patterns", "keyword2" }, | ||
{ "item", "keyword2" }, | ||
{ "false", "literal" }, | ||
{ "condition", "keyword2" }, | ||
{ "null", "literal" }, | ||
{ "bidirectional", "keyword" }, | ||
{ "inverted", "keyword" }, | ||
{ "true", "literal" }, | ||
{ "bind-property", "keyword" }, | ||
{ "marks", "keyword2" }, | ||
{ "C_", "operator" }, | ||
{ "sync-create", "keyword" }, | ||
{ "template", "keyword" }, | ||
{ "widgets", "keyword2" }, | ||
{ "_", "operator" }, | ||
{ "styles", "keyword2" }, | ||
{ "items", "keyword2" }, | ||
{ "layout", "keyword2" }, | ||
{ "disabled", "keyword" }, | ||
|
||
}, | ||
"//", | ||
{} | ||
|
||
} ); | ||
} | ||
|
||
}}}} // namespace EE::UI::Doc::Language |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef EE_UI_DOC_Blueprint | ||
#define EE_UI_DOC_Blueprint | ||
|
||
namespace EE { namespace UI { namespace Doc { namespace Language { | ||
|
||
extern void addBlueprint(); | ||
|
||
}}}} // namespace EE::UI::Doc::Language | ||
|
||
#endif |
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
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