syntax markup prototype

master
Alessandro Mauri 5 years ago
parent fb4400f08f
commit 770934ec0b
  1. 2
      ste.c
  2. 65
      syntax/stes-c.json

@ -338,8 +338,6 @@ void fileOpen (char *filename)
/*------------------------------------- file operations ----------------------------------*/
/* ----------------------------- row operations --------------------------- */
/* take care of the cursor movement */
void cursorMove (int a)
{

@ -0,0 +1,65 @@
{ "color" : "grey", "value" : 5}
{ "color" : "red", "value" : 1}
{ "color" : "blue", "value" : 2}
{ "color" : "green", "value" : 3}
{ "color" : "yellow", "value" : 4}
{ "color" : "white", "value" : 0}
{ "color" : "pink", "value" : 6}
{ "type" : "text", "color" : "white"}
{
"type" : "comment",
"color" : "grey",
"start" : ["//", "/*"],
"end" : ["\n", "*/"]
}
{
"type" : "macro",
"color" : "pink",
"start" : "#",
"end" : " "
}
{
"type" : "var",
"color" : "blue",
"match" : // must have a whitespace after match
[
"int", "char",
"float", "double",
"void", "NULL"
],
"start" :
[
"int", "uint",
"int_least", "uint_least",
"int_fast", "uint_fast",
"intptr", "uintptr",
"intmax", "uintmax"
],
"end" : "_t"
}
{
"type" : "struct",
"color" : "green",
"match" :
[
"struct", "enum",
"union", "typedef"
]
}
{
"type" : "attribute",
"color" : "yellow",
"match" :
[
"static", "const",
"short", "long",
"signed", "unsigned",
"inline", "register"
]
}
Loading…
Cancel
Save