aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/lexers/git.tes
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-01 22:59:31 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-01 22:59:31 +0300
commitd734f9904bbe0ba33dd86083e44d89cf2da3cbb2 (patch)
treefb5f38eab7b676520995c20b43ed1c9b4f7ef682 /lib/lexers/git.tes
parentc0cede661eb9362cce1b50642c4bae5faa7bd220 (diff)
downloadsciteco-d734f9904bbe0ba33dd86083e44d89cf2da3cbb2.tar.gz
implemented email and git lexer folding
Diffstat (limited to 'lib/lexers/git.tes')
-rw-r--r--lib/lexers/git.tes9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/lexers/git.tes b/lib/lexers/git.tes
index 8495f12..491ec1e 100644
--- a/lib/lexers/git.tes
+++ b/lib/lexers/git.tes
@@ -18,6 +18,13 @@
:M[color.comment],1M[color.set]
J< .-Z"= 1; '
- 0A-#"= ESSTARTSTYLING 1,(Q.lESLINELENGTH)ESSETSTYLING '
+ 0A-#"=
+ ESSTARTSTYLING 1,(Q.lESLINELENGTH)ESSETSTYLING
+
+ !* only the first line gets the fold level header *!
+ -2ESGETSTYLEINDEXAT-1"N 1024#(2^*13) | 1025 ',Q.lESSETFOLDLEVEL
+ '
+ !* empty line *!
+ 0A-10"= 1024#(2^*12),Q.lESSETFOLDLEVEL '
:L; %.l>
]:}