Added -PARTIAL- XML support.
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"glossary": {
|
||||
"title": "example glossary",
|
||||
"GlossDiv": {
|
||||
"title": "S",
|
||||
"GlossList": {
|
||||
"GlossEntry": {
|
||||
"ID": "SGML",
|
||||
"SortAs": "SGML",
|
||||
"GlossTerm": "Standard Generalized Markup Language",
|
||||
"Acronym": "SGML",
|
||||
"Abbrev": "ISO 8879:1986",
|
||||
"GlossDef": {
|
||||
"para": "A meta-markup language, used to create markup languages such as DocBook.",
|
||||
"GlossSeeAlso": ["GML", "XML"]
|
||||
},
|
||||
"GlossSee": "markup"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -152,6 +152,7 @@ char* BASH_HL_extensions[] = {".sh", NULL};
|
||||
char* JS_HL_extensions[] = {".js", ".jsx", NULL};
|
||||
char* PHP_HL_extensions[] = {".php", NULL};
|
||||
char* JSON_HL_extensions[] = {".json", ".jsonp", NULL};
|
||||
char* XML_HL_extensions[] = {".xml", NULL};
|
||||
|
||||
char* C_HL_keywords[] = {
|
||||
"switch", "if", "while", "for", "break", "continue", "return", "else",
|
||||
@@ -226,6 +227,10 @@ char* JSON_HL_keywords[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
char* XML_HL_keywords[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
struct editor_syntax HL_DB[] = {
|
||||
{
|
||||
"c",
|
||||
@@ -290,6 +295,15 @@ struct editor_syntax HL_DB[] = {
|
||||
NULL,
|
||||
HL_HIGHLIGHT_NUMBERS | HL_HIGHLIGHT_STRINGS
|
||||
},
|
||||
{
|
||||
"xml",
|
||||
XML_HL_extensions,
|
||||
XML_HL_keywords,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
HL_HIGHLIGHT_NUMBERS | HL_HIGHLIGHT_STRINGS
|
||||
},
|
||||
};
|
||||
|
||||
// Size of the "Hightlight Database" (HL_DB).
|
||||
|
||||
Reference in New Issue
Block a user