Introduction
Introduction Statistics Contact Development Disclaimer Help
tconf.h: highlight shell keywords and variables - neatvi - [fork] simple vi-typ…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit f5724e9c44c13c54ff36dd080804a3c0e01877b7
parent e9a16a0778855b2c376333537b8331bdced600e6
Author: Ali Gholami Rudi <[email protected]>
Date: Thu, 15 Oct 2020 16:57:19 +0330
conf.h: highlight shell keywords and variables
Diffstat:
M conf.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/conf.h b/conf.h
t@@ -63,9 +63,13 @@ static struct highlight {
{"mk", {0, SYN_BD}, "([A-Za-z_%.]+):"},
/* shell script */
+ {"sh", {5 | SYN_BD}, "\\<(break|case|continue|do|done|elif|else|esac|f…
{"sh", {2 | SYN_IT}, "#.*$"},
- {"sh", {4}, "\"([^\"]|\\\\\")*\""},
- {"sh", {4}, "\'[^\']*\'"},
+ {"sh", {4}, "\"([^\"\\]|\\\\.)*\""},
+ {"sh", {4}, "'[^']*'"},
+ {"sh", {4}, "`([^`\\]|\\\\.)*`"},
+ {"sh", {1}, "\\$(\\{[^}]+\\}|[a-zA-Z_0-9]+)"},
+ {"sh", {0, SYN_BD}, "^([a-zA-Z_][a-zA-Z_0-9]*\\(\\)).*\\{"},
/* neatmail */
{"nm", {0 | SYN_BGMK(15), 6 | SYN_BD, 12 | SYN_BD, 5, 8 | SYN_BD},
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.