summaryrefslogtreecommitdiff
path: root/nvim/syntax/tssg.vim
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-04-17 10:57:45 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2022-04-17 10:57:45 -0500
commit51c91732f84707686e92f01d3d6387fba88675bd (patch)
tree07afd5b34f38d83ced837bb8e7dd66554defe9fc /nvim/syntax/tssg.vim
parent06b0c7eb739fd430aacbb46f183cea4aaf17300a (diff)
downloaddotconfig-51c91732f84707686e92f01d3d6387fba88675bd.tar.xz
dotconfig-51c91732f84707686e92f01d3d6387fba88675bd.zip
fixed gitignore file to not work recursively
Diffstat (limited to 'nvim/syntax/tssg.vim')
-rw-r--r--nvim/syntax/tssg.vim46
1 files changed, 46 insertions, 0 deletions
diff --git a/nvim/syntax/tssg.vim b/nvim/syntax/tssg.vim
new file mode 100644
index 0000000..3e17bf3
--- /dev/null
+++ b/nvim/syntax/tssg.vim
@@ -0,0 +1,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