diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-08-31 04:34:45 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-09 19:24:18 +0200 |
commit | c222fa3fab470686020c04d10d5d0f5d3f7b6500 (patch) | |
tree | f2d208c29dfd91af3c805b62073bc45bda02b5b3 /lib/lexers | |
parent | bed2f368f06f8e4cd535d24b56d00714e5de8424 (diff) | |
download | sciteco-c222fa3fab470686020c04d10d5d0f5d3f7b6500.tar.gz |
added an improvised lexer for styling Git commit messages
It's not a real Lexilla lexer, but simply styles the document
once in lexer.set.git in order to highlight comment lines.
Diffstat (limited to 'lib/lexers')
-rw-r--r-- | lib/lexers/git.tes | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/lexers/git.tes b/lib/lexers/git.tes new file mode 100644 index 0000000..922d788 --- /dev/null +++ b/lib/lexers/git.tes @@ -0,0 +1,16 @@ +!* Git commit and rebase messages *! + +@[lexer.test.git]{ + :EN*/COMMIT_EDITMSGQ*"S -1 ' + :EN*/git-rebase-todoQ* +} + +@[lexer.set.git]{ + :M[color.comment],1M[color.set] + + .U.p + J< .-Z"= 1; ' + 0A-#"= ESSTARTSTYLING 1,(Q.lESLINELENGTH)ESSETSTYLING ' + :L; %.l> + Q.pJ +} |