Created
February 3, 2019 11:59
-
-
Save jakevsrobots/184ad4dfbf15f0154d918d25d16e5c96 to your computer and use it in GitHub Desktop.
Vim syntax highlighting for Ink scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ink syntax file | |
if exists('b:current_syntax') | finish| endif | |
syntax match Bullet "[\*\+]" | |
syntax match OutputBracket "[\[\]]" | |
syntax match Option "\s?[\*\+].*" contains=Bullet,OutputBracket | |
syntax match Knot "^===.*" | |
syntax match Divert "-> [^ ]*" | |
syntax match Tag "\#.*" | |
syntax match Comment "//.*" | |
syntax match Variable "^VAR.*" | |
syntax match List "^LIST.*" | |
syntax match Command "^\~.*" | |
syntax match Expression "{.*}" | |
syntax match Glue "<>" | |
" coloring | |
hi def link Knot Function | |
hi def link Divert Operator | |
hi def link Bullet Operator | |
hi def link OutputBracket Operator | |
hi def link Glue Operator | |
hi def link Tag PreProc | |
hi def link Comment Comment | |
hi def link Variable Identifier | |
hi def link List Identifier | |
hi def link Command Statement | |
hi def link Expression Statement | |
let b:currentsyntax = 'ink' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment