Introduction
Introduction Statistics Contact Development Disclaimer Help
tconf.h: disable syntax highlighting - neatvi - [fork] simple vi-type editor wi…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit 6fa27203398ab76f336189d917da39de687082b4
parent 5a453df93f837b38ec466f6f66d5529d8177f896
Author: Anders Damsgaard <[email protected]>
Date: Sat, 21 May 2022 06:22:49 +0200
conf.h: disable syntax highlighting
Diffstat:
M conf.h | 89 +----------------------------…
1 file changed, 1 insertion(+), 88 deletions(-)
---
diff --git a/conf.h b/conf.h
t@@ -27,94 +27,7 @@ static struct highlight {
char *pat; /* regular expression */
int end; /* the group ending this pattern */
} highlights[] = {
- {"c", {5}, "\\<(signed|unsigned|char|short|int|long|float|double|void|…
- {"c", {5}, "\\<(static|extern|register)\\>"},
- {"c", {4}, "\\<(return|for|while|if|else|do|sizeof|goto|switch|case|de…
- {"c", {2 | SYN_IT}, "//.*$"},
- {"c", {2 | SYN_IT}, "/\\*([^*]|\\*+[^*/])*\\*+/"},
- {"c", {6}, "^#[ \t]*[a-zA-Z0-9_]+"},
- {"c", {0, SYN_BD}, "([a-zA-Z][a-zA-Z0-9_]+)\\(", 1},
- {"c", {4}, "\"([^\"]|\\\\\")*\""},
- {"c", {4}, "'([^\\]|\\\\.)'"},
- {"c", {4}, "[-+]?\\<(0[xX][0-9a-fA-F]+|[0-9]+)\\>"},
-
- {"roff", {4, 0, 5 | SYN_BD, 4 | SYN_BD, 5 | SYN_BD, 4 | SYN_BD},
- "^[.'][ \t]*((SH.*)|(de) (.*)|([^ \t\\]{2,}))?.*$", 1},
- {"roff", {2 | SYN_IT}, "\\\\\".*$"},
- {"roff", {3}, "\\\\{1,2}[*$fgkmns]([^[(]|\\(..|\\[[^]]*\\])"},
- {"roff", {3}, "\\\\([^[(*$fgkmns]|\\(..|\\[[^]]*\\])"},
- {"roff", {3}, "\\$[^$]+\\$"},
-
- {"tex", {4 | SYN_BD, 0, 3, 0, 5},
- "\\\\[^[{ \t]+(\\[([^]]+)\\])?(\\{([^}]*)\\})?"},
- {"tex", {3}, "\\$[^$]+\\$"},
- {"tex", {2 | SYN_IT}, "%.*$"},
-
- /* mail */
- {"msg", {6 | SYN_BD}, "^From .*20..$"},
- {"msg", {6 | SYN_BD, 4 | SYN_BD}, "^Subject: (.*)$"},
- {"msg", {6 | SYN_BD, 2 | SYN_BD}, "^From: (.*)$"},
- {"msg", {6 | SYN_BD, 5 | SYN_BD}, "^To: (.*)$"},
- {"msg", {6 | SYN_BD, 5 | SYN_BD}, "^Cc: (.*)$"},
- {"msg", {6 | SYN_BD}, "^[A-Z][-A-Za-z]+: .+$"},
- {"msg", {2 | SYN_IT}, "^> .*$"},
-
- /* makefile */
- {"mk", {0, 3}, "([A-Za-z_][A-Za-z0-9_]*)[ \t]*="},
- {"mk", {3}, "\\$\\([a-zA-Z0-9_]+\\)"},
- {"mk", {2 | SYN_IT}, "#.*$"},
- {"mk", {0, SYN_BD}, "([A-Za-z_%.]+):"},
-
- /* shell script */
- {"sh", {5 | SYN_BD}, "\\<(break|case|continue|do|done|elif|else|esac|f…
- {"sh", {4}, "\"([^\"\\]|\\\\.)*\""},
- {"sh", {4}, "'[^']*'"},
- {"sh", {3}, "`([^`\\]|\\\\.)*`"},
- {"sh", {1}, "\\$(\\{[^}]+\\}|[a-zA-Z_0-9]+|[!#$?*@-])"},
- {"sh", {0, SYN_BD}, "^([a-zA-Z_][a-zA-Z_0-9]* *\\(\\)) *\\{"},
- {"sh", {SYN_BD}, "^\\. .*$"},
- {"sh", {2 | SYN_IT}, "#.*$"},
-
- {"bib", {0, 8 | SYN_BD, SYN_BGMK(11) | SYN_BD}, "^(%L) +(.*)$", 1},
- {"bib", {0, 8 | SYN_BD, 12 | SYN_BD}, "^(%A) (.*)$", 1},
- {"bib", {0, 8 | SYN_BD, 5 | SYN_BD}, "^(%T) (.*)$", 1},
- {"bib", {0, 8 | SYN_BD, 2 | SYN_BD}, "^(%[JB]) (.*)$", 1},
- {"bib", {0, 8 | SYN_BD, 5 | SYN_BD}, "^(%D) (.*)$", 1},
- {"bib", {0, 8 | SYN_BD, 7}, "^(%O) (.*)$", 1},
- {"bib", {0, 8 | SYN_BD, 8 | SYN_BD}, "^(%[A-Z]) (.*)$", 1},
- {"bib", {25}, "^#.*$", 1},
-
- /* python */
- {"py", {2}, "#.*$"},
- {"py", {5}, "\\<(class|def)\\>"},
- {"py", {5}, "\\<(and|or|not|is|in)\\>"},
- {"py", {5}, "\\<(import|from|global|lambda|del)\\>"},
- {"py", {5}, "\\<(for|while|if|elif|else|pass|return|break|continue)\\>…
- {"py", {5}, "\\<(try|except|as|raise|finally|with)\\>"},
- {"py", {0, 0 | SYN_BD}, "([a-zA-Z][a-zA-Z0-9_]+)\\(", 1},
- {"py", {4}, "[\"']([^\"']|\\\\\")*[\"']"},
-
- /* neatmail */
- {"nm", {0 | SYN_BGMK(15), 6 | SYN_BD, 12 | SYN_BD, 5, 8 | SYN_BD},
- "^([ROU])([0-9]+)\t([^\t]*)\t([^\t]*)"},
- {"nm", {0 | SYN_BD | SYN_BGMK(6)}, "^[N].*$"},
- {"nm", {0 | SYN_BD | SYN_BGMK(13)}, "^[A-Z][HT].*$"},
- {"nm", {0 | SYN_BD | SYN_BGMK(11)}, "^[A-Z][MI].*$"},
- {"nm", {7 | SYN_BGMK(15)}, "^[A-Z][LJ].*$"},
- {"nm", {0 | SYN_BD | SYN_BGMK(7)}, "^[F].*$"},
- {"nm", {7 | SYN_IT}, "^\t.*$"},
- {"nm", {SYN_BD}, "^:.*$"},
-
- /* diff */
- {"diff", {1}, "^-.*$"},
- {"diff", {2}, "^\\+.*$"},
- {"diff", {6}, "^@.*$"},
- {"diff", {SYN_BD}, "^diff .*$"},
-
- /* status bar */
- {"---", {8 | SYN_BD, 4, 1}, "^(\".*\").*(\\[[wr]\\]).*$"},
- {"---", {8 | SYN_BD, 4, 4}, "^(\".*\").*(L[0-9]+) +(C[0-9]+).*$"},
- {"---", {8 | SYN_BD}, "^.*$"},
+ {"invalid", {0}, ""},
};
/* how to hightlight current line (hll option) */
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.