Core: registro de metadados de blocos (tb_meta) + testes; metadados declarados nas libraries
This commit is contained in:
1 parent
22ae18f508
commit
036162280d
14 files changed
+397
-2
No files matched your search
@@ -483,6 +483,14 @@ static bool syntax_init(TinyBlocks* rt, TinyBlocks_LibraryBlock* lib) {
|
||||
};
|
||||
tb_library_set_category(lib, &cat);
|
||||
|
||||
/* Metadados dos blocos (tooltip do editor: Alt + hover). */
|
||||
TB_BLOCK_META("Syntax.Highlight", "eval_highlight",
|
||||
"Realca a sintaxe de um texto (XML)");
|
||||
TB_BLOCK_META("Syntax.Inline", "eval_inline",
|
||||
"Realca uma unica linha de codigo (XML)");
|
||||
TB_BLOCK_META("Syntax.Languages", "eval_languages",
|
||||
"Lista as linguagens suportadas");
|
||||
|
||||
static const TinyBlocks_SlotDesc hl_in[] = {{"texto", TB_VALUE_TEXT}, {"linguagem", TB_VALUE_TEXT}};
|
||||
static const TinyBlocks_SlotDesc out_text_s[] = {{"xml", TB_VALUE_TEXT}};
|
||||
static const TinyBlocks_SlotDesc out_list_s[] = {{"linguagens", TB_VALUE_TEXT}};
|
||||
|
||||
Reference in new issue
Block a user