blob: 3e17bf304912bb622fcab842a9a84d7304caca91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
" Vim syntax file
" Language: Timmy Static Site Generator Markdown Language
" Maintainer: tjk@tjkeller.xyz
" Latest Revision: 27 October 2021
if exists("b:current_syntax")
finish
endif
" Keywords
syn keyword subCommands href= class= id=
" Matches
syn match escaped '\\\\\\>'
syn match escaped '\\\#\>'
"syn match escaped '\\\{\+'
"syn match escaped '\\\}\+'
"syn match braces "\{\>\|\}\>"
syn match headerStartEnd "\\starthead\>\|\\endhead\>"
syn match headerElement "\\stylesheet\>\|\\tags\>\|\\title\>\|\\author\>"
syn match specialCommands "\\n\>\|\\code\>"
syn match headerCommands "\\h1\>\|\\h2\>\|\\h3\>\|\\h4\>\|\\h5\>\|\\h6\>"
syn match paragraphCommands "\\p\>"
syn match linkCommands "\\a\>\|\\img\>"
syn match listCommands "\\snl\>\|\\sul\>\|\\enl\>\|\\eul\>"
syn match listitemCommands "\\li\>"
syn match comments "\#.*\>"
" Regions
" syn region
" Hightlight Keywords
let b:current_syntax = "tssg"
hi def link headerStartEnd Type
hi def link headerElement Type
hi def link specialCommands Statement
hi def link headerCommands Statement
hi def link paragraphCommands Statement
hi def link linkCommands Statement
hi def link listCommands Statement
hi def link listitemCommands Statement
hi def link subCommands Constant
hi def link escaped Constant
hi def link braces Statement
hi def link comments Comment
|